A 14-year-old from Marlborough is back in Massachusetts on Thursday after being detained by federal immigration agents earlier this week and brought to New York. But despite the government's assurance to a federal judge that the intent was to protect the girl and not deport her, the teen was served papers to appear in immigration court, her attorney said. On Tuesday, the girl was with her brothers and friends at a parking lot in Marlborough when Homeland Security Investigations agents approached them and detained her. She was then taken to a federal building in Boston before being driven out of state.On Wednesday, Judge Leo T. Sorokin ordered the teen to be immediately returned to her aunt, with whom she will live in Weymouth. She was reunited with her family at about 1 p.m. Thursday."I’ve dealt with a lot of juveniles, but her spirits are very high, grateful she found help and that she’s with her family," attorney Andrew Lattarulo said.In a statement, Deputy Assistant Secretary Lauren Bis said, "ICE did NOT arrest a 14-year-old girl -- our officers RESCUED her from suspected gang members." "If they had genuine concern and care about the welfare of this minor child, their actions are very contradictory to people who are actually concerned about the safety and the welfare of a minor," said Rep. Ayanna Pressley.Bis’ statement said Immigration and Customs Enforcement was conducting a targeted operation to arrest "two illegal aliens from Brazil and suspected Primeiro Comando da Massachusetts gang members" when the teen was found with them in a car.Once it was determined that the teen had no family connection to the men, Bis said she was placed in the custody of Health and Human Services' Office of Refugee Resettlement "to ensure the safety and security of the minor" until "the identification of legal guardians.""When you detain a minor, you’re supposed to immediately contact an adult," Lattarulo said. "They didn’t do that."Federal immigration officials said the teen was taken to New York because there was a bed available in a space designed for minors.According to a civil lawsuit, the girl was born in Brazil and entered the United States on a visitor’s visa in 2019. She lives in Marlborough with family members, including her two brothers, who are United States citizens, according to the lawsuit.Lattarulo said the girl's mother died and her father is not in her life, and that the teen had not committed a crime and has no criminal history.On Wednesday, the government told the judge it had no intention of deporting the teen, but on Thursday, her attorney told WCVB that she had been served with a notice to appear in immigration court for removal proceedings. "Are you rescuing a child when you detain them in an office building for 10 hours then transport them 7 hours to New York? Then it takes a federal judge to tell you that you’re wrong, bring her back? Say, 'We’re not trying to deport her,' then hand you a document that says, 'We’re trying to deport you'? It doesn’t make sense," Lattarulo said. "I wish that her case was an anomaly," Pressley said. On Thursday, Pressley visited the ICE facility in Burlington, where protesters hold almost daily demonstrations. She said her office helped connect the teen with legal help."Even when we’re able to have an intervention, and ultimately have someone freed or reunited with their families and their communities and return to their lives, they’re forever changed," she said. BOSTON —A 14-year-old from Marlborough is back in Massachusetts on Thursday after being detained by federal immigration agents earlier this week and brought to New York. But despite the government's assurance to a federal judge that the intent was to protect the girl and not deport her, the teen was served papers to appear in immigration court, her attorney said. On Tuesday, the girl was with her brothers and friends at a parking lot in Marlborough when Homeland Security Investigations agents approached them and detained her. She was then taken to a federal building in Boston before being driven out of state. On Wednesday, Judge Leo T. Sorokin ordered the teen to be immediately returned to her aunt, with whom she will live in Weymouth. She was reunited with her family at about 1 p.m. Thursday."I’ve dealt with a lot of juveniles, but her spirits are very high, grateful she found help and that she’s with her family," attorney Andrew Lattarulo said.In a statement, Deputy Assistant Secretary Lauren Bis said, "ICE did NOT arrest a 14-year-old girl -- our officers RESCUED her from suspected gang members." "If they had genuine concern and care about the welfare of this minor child, their actions are very contradictory to people who are actually concerned about the safety and the welfare of a minor," said Rep. Ayanna Pressley. Bis’ statement said Immigration and Customs Enforcement was conducting a targeted operation to arrest "two illegal aliens from Brazil and suspected Primeiro Comando da Massachusetts gang members" when the teen was found with them in a car.Once it was determined that the teen had no family connection to the men, Bis said she was placed in the custody of Health and Human Services' Office of Refugee Resettlement "to ensure the safety and security of the minor" until "the identification of legal guardians.""When you detain a minor, you’re supposed to immediately contact an adult," Lattarulo said. "They didn’t do that."Federal immigration officials said the teen was taken to New York because there was a bed available in a space designed for minors.According to a civil lawsuit, the girl was born in Brazil and entered the United States on a visitor’s visa in 2019. She lives in Marlborough with family members, including her two brothers, who are United States citizens, according to the lawsuit.Lattarulo said the girl's mother died and her father is not in her life, and that the teen had not committed a crime and has no criminal history.On Wednesday, the government told the judge it had no intention of deporting the teen, but on Thursday, her attorney told WCVB that she had been served with a notice to appear in immigration court for removal proceedings. "Are you rescuing a child when you detain them in an office building for 10 hours then transport them 7 hours to New York? Then it takes a federal judge to tell you that you’re wrong, bring her back? Say, 'We’re not trying to deport her,' then hand you a document that says, 'We’re trying to deport you'? It doesn’t make sense," Lattarulo said. "I wish that her case was an anomaly," Pressley said. On Thursday, Pressley visited the ICE facility in Burlington, where protesters hold almost daily demonstrations. She said her office helped connect the teen with legal help."Even when we’re able to have an intervention, and ultimately have someone freed or reunited with their families and their communities and return to their lives, they’re forever changed," she said.