What Max Horkheimer had said about Fascism and capitalism already back in 1930s - those who do not want to talk critically about capitalism should also keep quiet about Fascism - should also be applied to today’s fundamentalism: those who do not want to talk critically about liberal democracy should also keep quiet about religious fundamentalism.
"liberal democracy" not liberal democracy. FTFY.
There's no democracy where the zombie wealth of a few shuffles lives over the entire world with no responsibility whatsoever: that's a liberal mix of private dictatorships into a transvestite democracy breeding irrationalities, among them, religions, and amid these, fundamentalisms. That's what education as a commodity brings. That's what a for-profit society becomes: a few superrich surrounded by darkness and sorrow. The personal wealth of each person should be limited to a statistic of the society that person's living in; more precisely the total personal wealth of each person should be limited to a (maximum) lifetime of average salaries per its national economy, updated automatically and periodically.
This is a fix for both kinds of tribes: "liberal democracies" and religious fundamentalisms.
Because of the lack of the above limit, we still don't know yet: Who made those bullets? Who made those guns? Who sold them? Who's driving uselessly cars in the cities consuming oil ultimately funding this criminal mess and the criminal mess in the middle east?
After we all find the answers to the above, what is there to do?
The rational algorithm "How to get rid of terrorism in 8 steps": 0. Limit the total personal wealth to a (maximum) lifetime of average salaries per own national economy, updated automatically and periodically. 1. Arrest the chiefs of the companies which produced and sold guns and ammunition to citizens which should not carry guns and their commercial intermediaries in these transactions. These are supporting international terrorism. Send them in jail for life or block their bank accounts, or exile them, or ban their entrance. 2. Ban all guns that can kill at a distance; torrents don't do that, bullets do. 3. Reinstate the death penalty for those who killed. 4. "Randomly" search houses of any religious persons for guns and ammunition: if found, exile their families and strip them of citizenship. Jail their providers. 5. Only allow armament in the country's military defence. 6. Withdraw from any war you might be involved in, use bikes, trains and internet instead. 7. Watch George Carlin --- Religion is Bullshit and George Carlin - Life is Sacred 8. Repeat until we all enjoy living again and consent to having children, if ever.