(1) The killing of a human being by the act, procurement or omission of another shall be justifiable in the following cases:
(a) When committed by public officers, or those acting by their aid and assistance, in obedience to any judgment of a competent court;
(b) When necessarily committed by public officers, or those acting by their command in their aid and assistance, in overcoming actual resistance to the execution of some legal process, or to the discharge of any other legal duty;
(c) When necessarily committed by public officers, or those acting by their command in their aid and assistance, in retaking any felon who has been rescued or has escaped;
(d) When necessarily committed by public officers, or those acting by their command in their aid and assistance, in arresting any felon fleeing from justice;
(e) When committed by any person in resisting any attempt unlawfully to kill such person or to commit any felony upon him, or upon or in any dwelling, in any occupied vehicle, in any place of business, in any place of employment or in the immediate premises thereof in which such person shall be;
(f) When committed in the lawful defense of one’s own person or any other human being, where there shall be reasonable ground to apprehend a design to commit a felony or to do some great personal injury, and there shall be imminent danger of such design being accomplished;
(g) When necessarily committed in attempting by lawful ways and means to apprehend any person for any felony committed;
(h) When necessarily committed in lawfully suppressing any riot or in lawfully keeping and preserving the peace; and
(i) When necessarily committed in the performance of duty as a member of a church or place of worship security program as described in Section 45-9-171.
(2)
(a) As used in subsection (1)(c) and (d) of this section, the term “when necessarily committed” means that a public officer or a person acting by or at the officer’s command, aid or assistance is authorized to use such force as necessary in securing and detaining the felon offender, overcoming the offender’s resistance, preventing the offender’s escape, recapturing the offender if the offender escapes or in protecting himself or others from bodily harm; but such officer or person shall not be authorized to resort to deadly or dangerous means when to do so would be unreasonable under the circumstances. The public officer or person acting by or at the officer’s command may act upon a reasonable apprehension of the surrounding circumstances; however, such officer or person shall not use excessive force or force that is greater than reasonably necessary in securing and detaining the offender, overcoming the offender’s resistance, preventing the offender’s escape, recapturing the offender if the offender escapes or in protecting himself or others from bodily harm.
(b) As used in subsection (1)(c) and (d) of this section the term “felon” shall include an offender who has been convicted of a felony and shall also include an offender who is in custody, or whose custody is being sought, on a charge or for an offense which is punishable, upon conviction, by death or confinement in the Penitentiary.
(c) As used in subsections (1)(e) and (3) of this section, “dwelling” means a building or conveyance of any kind that has a roof over it, whether the building or conveyance is temporary or permanent, mobile or immobile, including a tent, that is designed to be occupied by people lodging therein at night, including any attached porch.
(3) A person who uses defensive force shall be presumed to have reasonably feared imminent death or great bodily harm, or the commission of a felony upon him or another or upon his dwelling, or against a vehicle which he was occupying, or against his business or place of employment or the immediate premises of such business or place of employment, if the person against whom the defensive force was used, was in the process of unlawfully and forcibly entering, or had unlawfully and forcibly entered, a dwelling, occupied vehicle, business, place of employment or the immediate premises thereof or if that person had unlawfully removed or was attempting to unlawfully remove another against the other person’s will from that dwelling, occupied vehicle, business, place of employment or the immediate premises thereof and the person who used defensive force knew or had reason to believe that the forcible entry or unlawful and forcible act was occurring or had occurred. This presumption shall not apply if the person against whom defensive force was used has a right to be in or is a lawful resident or owner of the dwelling, vehicle, business, place of employment or the immediate premises thereof or is the lawful resident or owner of the dwelling, vehicle, business, place of employment or the immediate premises thereof or if the person who uses defensive force is engaged in unlawful activity or if the person is a law enforcement officer engaged in the performance of his official duties.
(4) A person who is not the initial aggressor and is not engaged in unlawful activity shall have no duty to retreat before using deadly force under subsection (1)(e) or (f) of this section if the person is in a place where the person has a right to be, and no finder of fact shall be permitted to consider the person’s failure to retreat as evidence that the person’s use of force was unnecessary, excessive or unreasonable.
(5)
(a) The presumptions contained in subsection (3) of this section shall apply in civil cases in which self-defense or defense of another is claimed as a defense.
(b) The court shall award reasonable attorney’s fees, court costs, compensation for loss of income, and all expenses incurred by the defendant in defense of any civil action brought by a plaintiff if the court finds that the defendant acted in accordance with subsection (1)(e) or (f) of this section. A defendant who has previously been adjudicated “not guilty” of any crime by reason of subsection (1)(e) or (f) of this section shall be immune from any civil action for damages arising from the same conduct.