Simple ban islam, if you cant have a peaceful region then dont have one.
May sound bad but this is the fix.
They will go underground and it will be harder to spy on them.
You have to educate people in the Middle East as this is where this ideology originates.
There are similarities between Islamist terrorist networks and criminal gangs. You probably can use
the same techniques to fight it.