(a) A law enforcement officer, after giving notice of the officer's identity as such, may use or threaten to use force that is reasonably necessary to accomplish the arrest of an individual suspected of a criminal act who resists or flees from the arrest.
(b) Notwithstanding subsection (a), the officer may use deadly force to effect an arrest only if all other reasonable means of apprehension have been exhausted or are unavailable, and where feasible, the officer has given notice of the officer's identity as such and given a warning that deadly force may be used unless resistance or flight ceases, and:
(1) The officer has probable cause to believe the individual to be arrested has committed a felony involving the infliction or threatened infliction of serious bodily injury; or
(2) The officer has probable cause to believe that the individual to be arrested poses a threat of serious bodily injury, either to the officer or to others unless immediately apprehended.