An American and his family who were living in territory held by ISIS in Syria have been detained in Turkey, a senior Turkish official told CNN.