But if it had been done by a theist they would blame the attacker's religion.

Precisely, which was the principal reason for posting it. All to often, behaviour is assigned specifically to religious beliefs when in fact there are always additional mitigating factors irrespective of the beliefs involved.