An officer may execute a warrant of arrest on any day and at any time; but in doing so, he must inform the defendant of his authority and, if required, must show the warrant. If an officer executing an arrest warrant is refused admittance after notice of his authority and purpose, he may break an outer or inner door or window of a dwelling house in order to make the arrest.