A peace officer, a federal law enforcement officer, or a private person who has lawfully entered a building for the purpose of making an arrest and is detained in the building, may break open a door or window of the building if necessary to escape from the building. A peace officer or federal law enforcement officer may break open a door or window of a building if necessary to liberate a person who lawfully entered the building for the purpose of making an arrest and is detained in the building.
MCL 764.22