A 39-year-old man died in hospital alone, miles from his family, after being detained by US immigration officials.