After examining his visa and other travel documents, the police handed him over to his friends