If a person arrested escapes or is rescued, he may be immediately pursued by the officer or person in whose custody he was and retaken at any time and in any place in the state. If such officer or person is refused admittance, after notice of his intention, he may break open an outer or inner door or window of a dwelling house in order to retake the person so escaping or rescued.