The problem if there is a problem is limited to high schools.
The remedy is well known and widely practiced.
Limit entry points. Provide armed security at the entry points.
Ain't Whack-A-Mole® FUN!!!