(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 house 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;