When an officer or private person has entered a building in accordance with the provisions of section 13-3891 or 13-3892, he may break open a door or window of the building, if detained therein, when necessary for the purpose of liberating himself.