Turkey’s official news agency says Istanbul police have detained 36 people as alleged members of the Islamic State group.