To execute a search warrant, an officer may break open any door or window of a house, any part of a house or anything therein if after notice of his authority and purpose he is refused admittance.