Going to sound odd coming from a Canadian, but I have had experieince dealing with this topic.
Our enabling legislation allows for the Commission/PAC/ZBA(choose one that fits) to make a determination related to uses not specifically listed/permitted in a zone. In making this determination the Commission is permitted to attached terms and conditions to the use "to protect the safety, health and interest of properties within the zone and adjacent properties".
This item is a bit hazy in my memory(7 years ago) That being said here are the gist of some of the conditions that were attached.
1) Required an engineered building (stamped) and firing range to ensure that no ammunition escapes the firing range / building.
2) Setback of 100 feet from property lines - as above.
3) Limited storage and sale of ammunition and firearms on site.
4) Regulated types of weapons permitted. I think it was done through registered muzzle velocities or barrel length, can't remember. Basically, the building had to be built to withstand the firearms expected to be used and no other firearms would be permitted.
5) Required additional warning signage around property and at driveway.
6) Fire protection. Sprinklered building and appropriate registration of materials stored on site for fire fighters safety. (related to item 3)
7) I think additional liability insurance was also a requirement.
This was for a large lot rural area, it never ended up being built as the ownership and registration rules for fire arms changed.