(2) Deadly Force. Deadly force is justified in the following instances:
[(a) when it is authorized by a federal law or occurs In the necessary and appropriate conduct of war;]
(b) when used in lawful self-defense, or in lawful defense of others, if such force is necessary to protect the actor or anyone else against death, serious bodily injury, or the cow-mission of a felony involving violence, except that the use of deadly force is not justified if it can be avoided, with safety to the actor and others, by retreat or other conduct involving minimal interference with the freedom of the person menaced. A person seeking to protect someone else must, before using deadly force, try to cause that person to retreat, or otherwise comply with the requirements of this provision, if safety can be obtained thereby; but (i) a public servant or an officer of a ship or aircraft justified in using force in the performance of his duties or a person justified in using force in his assistance need not desist from his efforts because of resistance or threatened resistance by or on behalf of the person against whom his action is directed, and (ii) no person is required to retreat from his dwelling, or place of work, unless he was the original aggressor or is assailed by a person who he knows also dwells or works there;
(c) when used by a person in possession or control of a dwelling or place of work, or a person who is licensed or privileged to be thereon, if such force is necessary to prevent commission of arson, burglary, robbery or a felony involving violence upon or in the dwelling or place of work or to prevent a person in flight immediately after committing a robbery or burglary from taking the fruits thereof from the dwelling or place of work, and the use of force other than deadly force for such purposes would expose anyone to substantial danger of serious bodily injury;
(d) when used by a public servant authorized to effect arrests or prevent escapes, if such force is necessary to effect an arrest or to prevent the escape from custody of a person who has committed or attempted to commit a felony involving violence, or is attempting to escape by the use of a deadly wear on, or has otherwise indicated that he is likely to endanger human life or to inflict serious bodily injury unless apprehended without delay;
(e) when used by a guard or other public servant, if such force is necessary to prevent the escape of a prisoner from a detention facility unless he knows that the prisoner is not such a person as described in paragraph (d) above. A detention facility is any place used for the confinement, pursuant to a court order, of a person (i) charged with or convicted of an offense, or (ii) charged with being or adjudicated a youth offender or juvenile delinquent, or (iii) held for extradition, or (iv) otherwise confined pursuant to court order;
(f) when used by a public servant, if such force is necessary (i) to prevent overt and forceful acts of treason, insurrection or sabotage, or (ii) to prevent murder, manslaughter, aggravated assault, arson, robbery, burglary or kidnapping in the course of a riot if the deadly force is employed following reasonable notice of intent to employ deadly force, and does not carry with it an unreasonable danger to life of nonparticipants in the riot, and is employed pursuant to a decision or order of a public servant having supervisory authority over ten or more other public servants concerned in the suppression of the riot;
(g) when used by an officer of a ship or aircraft if such force is necessary to prevent overt and forceful acts of mutiny, after the participants in such acts against whom such force is to be used have been ordered to cease and given reasonable notice of intent to employ deadly force;
(h) when used by a duly licensed physician, or a person acting at his direction, if such force is necessary in order to administer a recognized form of treatment to promote the physical or mental health of a patient and if the treatment is administered (i) in an emergency, or (ii) with the consent of the patient or, if the patient is a minor or an incompetent person, with the consent of his parent, guardian or other person entrusted with his care and supervision, or (iii) by order of a court of competent jurisdiction;
(i) when used by a person who is directed or authorized to use deadly force by a public servant or an officer of a ship or aircraft and who does not know that, if such is the case, the public servant or such officer is himself not authorized to use deadly force under the circumstances.