I dont think you can prevent school shootings, having teachers with guns is a deterrent and could save life's by shooting the kid with a gun.
The University of Sydney, in a 2016 study published in the Journal of the American Medical Association, found Australia hadn't experienced a fatal mass shooting — one in which five or more people are killed — since the 1996 shooting. In the 18 years prior, 1979-1996, there were 13 fatal mass shootings in Australia.