782.11 Unnecessary killing to prevent unlawful act.—Whoever shall unnecessarily kill another, either while resisting an attempt by such other person to commit any felony, or to do any other unlawful act, or after such attempt shall have failed, shall be deemed guilty of manslaughter, a felony of the second degree, punishable as provided in s. 775.082, s. 775.083, or s. 775.084.