(a) No person shall shoot or discharge any firearm as follows:
(1) Across or in any public road in the municipality, at any time;
(2) Within 500 feet of any school or church;
(3) Within 500 feet of any dwelling house; provided, that a person who is a resident of a dwelling house, and his or her authorized guest, may shoot or discharge a firearm in a lawful manner within 500 feet of the dwelling house where the person lives, if the firearm is being discharged with the express or implied knowledge and consent of all residents of that dwelling house, and no other dwelling houses are located within 500 feet of where the firearm is discharged; or
(4) On or near any park or other place where persons gather for purposes of pleasure.
(b) Notwithstanding the provisions of subsection (a) above, any person operating a gun repair shop, licensed to do business in the state and duly licensed under applicable federal statutes, is exempt from the prohibition established by this section for the purpose of testing firearms.