What a sad sad day.
Even countries with gun control have instances like this (but they're arguably less frequent), and some countries with lots of guns have almost no problems like this at all (Switzerland for instance).
Just trying to imagine dropping a grade school kid off at school to find them dead in the afternoon from an insane thing like this I find that I can't do it, it is just too far from what I can still imagine. And I have a pretty rich imagination...
This world could be so nice, why does it have to be such a crappy place?
My family home schools our children. It coincidentally helps solve this particular problem. (Perhaps it also reduces the likelihood that we spread viruses like the flu).
Making public education more distributed by the use of technology could certainly help with security.
I can only speak for my family, but we spend lots of time with other families and children. Church, Boy Scouts, Soccer, etc.
Ask yourself, have you ever been in public and recognized a home schooler because of the way they act?
The inverse is true too, how many socially awkward people do you remember from your public schooling? I sure remember a lot.
From my personal experience, I don't see a relationship between home/public schooling and social relationships.