There is something that can be done to combat these attacks but it would take brave leaders to do so. It's already been established that the islamists believe that if they are killed by a woman they will not go to paradise so why not create dedicated all female anti terror armed response units. It won't stop the attacks completely but it will give pause to at least some of these savage fuckwits that they will probably not get martyred and get their 72 virgins.
At worst we end up with far more armed response units than we had previously so can respond to these attacks much faster.