Nine journalists have been detained in Turkey after covering protests over the arrest of Istanbul's mayor, a union says.