Updated

The Latest on a high school senior arrested on immigration charges weeks before graduation. (all times local):

Federal officials have confirmed that a high school senior set to graduate in weeks has been freed from immigration lockup, but say his future in the U.S. remains uncertain.

ICE spokeswoman Yasmeen Pitts O'Keefe said Wednesday that 18-year-old Thomas Torres has been freed from custody but an immigration judge will decide whether he has legal basis to remain the country.

It is unclear if Torres will graduate from a Tucson high school on May 22 as scheduled.

He has lived in the US since being brought here as a small boy.

Torres' detention last week prompted about 120 classmates to protest outside the Pima County Sheriff's Office.

Sheriff's deputies contacted the Border Patrol on Thursday after Torres admitted during a traffic stop that he was in the U.S. illegally.

___

12:30 p.m.

The family a Tucson high school football player has lived with for years says he is free after being released from immigration detention.

Thomas Torres has stayed with Lorena Rodriguez's family during his years at Desert View High School. Rodriguez is announcing the 18-year-old's release on her Facebook page, saying "OPERATION THOMAS COMPLETE!"

But the circumstances of Torres' Tuesday release are unclear, including whether he'll graduate May 22 as scheduled.

Torres' detention last week prompted about 120 classmates to protest outside the Pima County Sheriff's Office.

Sheriff's deputies contacted the Border Patrol on Thursday after Torres admitted during a traffic stop that he was in the U.S. illegally.

The Border Patrol initially held Torres, but has since transferred him to ICE. An ICE spokeswoman says she's researching his status.