The ones who carried out the attacks and die are the ones who
believe that there will be 99 virgins ( I think the figure is
10,000 virgins) waiting for them in heaven.
The ones who ordered the attacks are anarchists.
These anarchists are actually infidels themselves, but we call them
religious extermists. Those of their faith condemn them.
The intention is to provoke a retaliation, a backlash. To generate
hatred for their faith, and people of their faith. Ironically, if
that do happen, these anarchists will say, "See, I told you so,
they hate us."
We must not fall into their trap.
Accept that there are all sorts of people out there.
Some will fall for it. And you can't do anything about it.
But you can guard yourself.