In a free society things like this can happen, if you want to make it impossible for thing like this to happen then you want an unfree society and you have my everlasting hatred.
If you want to find out motivation and seek to reduce that motivation, then you are on the right track to having a free and reasonably safe society.
Freedom is inherently risky