An alleged Islamic State militant is stuck after Turkey deported him and Greece refused him entry.