In May , police detained 11 suspected al-Qaida militants who were believed to be planning terrorist attacks in Istanbul .