At the end of the day the attackers made a religious attack. Religion was their motive. It doesn't matter how you put it. I know you want to rush to defend Islam - so I'll say this before you do. Theoretically, Islam is an incredibly peaceful religion.