A person who discharges a firearm within a city is guilty of a class B misdemeanor. This section does not apply to the lawful discharge of firearms by law enforcement officers, by citizens in defense of person or property, or by participants in lawful activities in which discharge of firearms is a recognized part of the activity, including shooting galleries and ranges.
N.D.C.C. § 62.1-02-06