Detained because he was trying to leave the country