(1) A law enforcement officer or other person who has an arrested person in his or her custody is justified in the use of any force which he or she reasonably believes to be necessary to prevent the escape of the arrested person from custody.
(2) A correctional officer or other law enforcement officer is justified in the use of force, including deadly force, which he or she reasonably believes to be necessary to prevent the escape from a penal institution of a person whom the officer reasonably believes to be lawfully detained in such institution under sentence for an offense or awaiting trial or commitment for an offense.