An 8-year-old Haitian boy has been reunited with relatives in California after his release from Immigration and Customs Enforcement custody, the Haitian Bridge Alliance, an immigration advocacy group, said. The Guardian reported that immigration agents detained the boy in San Diego on November 4. Rep. Juan Vargas wrote on Monday that the boy had been taken into custody during an immigration check-in, separated from his loved ones and held in a Texas facility. Vargas said the boy was finally home 11 days after the detention. The Guardian reported that the third-grader attended Fay elementary school.

Vargas shared a photograph of the boy and his family and wrote: “11 days ago, an 8-year-old in San Diego was taken into federal custody during an immigration check-in. He was separated from his loved ones and held in a facility in Texas. Today, he’s finally home.”

Federal immigration officers put the boy in restraints and took him into custody during the check-in, according to video obtained by NBC News and an oversight letter that Democratic lawmakers sent to the Departments of Homeland Security and Health and Human Services.

The Haitian Bridge Alliance confirmed the release. Guerline Jozef, the group’s executive director, said: “An eight-year-old child belongs in a classroom, on a playground, and surrounded by love – not in immigration detention. We welcome his release, but his freedom should never have required a public outcry.”

A Department of Homeland Security spokesperson said Immigration and Customs Enforcement took the child into custody “out of an abundance of caution and to ensure the child’s safety.” The spokesperson said the boy’s uncle was unable to prove legal guardianship.

The spokesperson said federal anti-trafficking laws obliged officials to take the boy into care as an “unaccompanied alien child.” The Haitian Bridge Alliance said the boy was in the care of his uncle and cousins after his father was deported last year.

Describing the family’s reaction, Jozef told NBC News: “The aunt was literally crying, and she said: ‘I have not eaten since the Wednesday they took my baby.’ They haven’t been able to sleep because of that.”

She added: “The cousins were there when they took him, and wondering: will they ever see him again? But today [Monday] they are able to see him again. They are able to hug him.”

Vargas also wrote: “I’m so grateful that he’s home, but this should have never happened in the first place.” He said he would ask the Trump administration for answers. He said the child had been “held in a facility in Texas, far away from his home in San Diego.”