Well Hornetguy and Katy-follower, I think families should police their own ranks for a person that becomes mentally unstable. That would still leave a person without family for whatever reason to be dealt with. If our society were more community based, we could have an oversight committee for that. With that lacking, it is up to the mental health practitioners to follow through when someone becomes unstable. They should work with the local law enforcement agencies. We have some of that now, but it needs more participation from mental health doctors. My thoughts, anyway.
The problem is that most of the people who go over-the-top and/or "snap," tend to be loners, with few family or friends, and there is no way to predict if and when people will act out their issues. The ones who are concerned about their mental health, their relationships, and seek help for their suffering, or their family and friends who might intervene, tend to be consistent. Character does matter, regardless of how ill someone might be, and a person's proven history of self-control and awareness of reality/reality-testing skills. Professionals say that the one's to worry about are those who will not, or can not "see" any need for help, similar to alcoholism or other issues. Also, people who are actively delusional and paranoid, and/or who might have low-character, as in "evil," or don't give a s*, or anti-social, and/or controlled by the devil, can be very dangerous. There are laws that prevent seriously ill people from buying weapons.
Since public schools are federally funded in America, and laws require kids to attend school, this would be a good time to increase the presence of law-enforcement on school grounds, and around schools, both plain-clothes and uniformed, to build relationships with students and parents, even if it is for a few months, to establish trust and security. Public safety is what we pay taxes for. If they identify anyone with some active threat issues, check it out-- if they get expelled, they should discretely patrol entrances to the school. isn't that what security camera's are for?
Mental illness is not necessarily the issue-- character is. And the dude, like most of them, clearly looked demonically possessed in the photo I saw, to the point that even the lady officer escorting him even looked distressed by his darkness and being near it--
Those people need exorcists--even more than medical help. And even that wouldn't help, if they don't want it. All you can do, is identify them, watch for them, and if you see them coming with a weapon, that's why law-enforcement is authorized, and trained, to use deadly force. And it would be very effective in situations like that--if you already know they are a threat, a camera sees them coming, there probably is not even time, or reason, to order them to stop.
That's one solution. As well as reduce school size, fund private schools, and increase community awareness and participation.