You can use political or religious beliefs to justify anything, but it might well be nonsense, and focusing squarely on that aspect of his motivation might not help you stop the next one.
In this particular case I have to wonder whether this attack was designed to elicit a specific reaction...