Mahmoud Khalil was at his college accommodation when immigration officials detained him, says his attorney.