Nine people have been detained in Turkey in connection with an attack on police outside the Israeli consulate in Istanbul.