NEW YORK (AP) — A former U.S. Army soldier was charged with arson and jailed without bail on Tuesday after prosecutors say he confessed to carrying out a fiery attack on a Manhattan federal office building where immigration hearings are held.Andrew Arrabaca, 43, plotted the attack for months and considered striking other New York City targets before setting a fire, lighting fireworks and firing a pellet gun Monday morning outside 26 Federal Plaza, Assistant U.S. Attorney Samantha Fry said.Arrabaca told investigators that he understood people could’ve been hurt or killed and that he he was willing to accept his own death in the process, Fry said. She called his actions “calculated, targeted and unacceptably dangerous.”Three people sustained minor injuries, including a person who had an immigration court hearing at the building, which also houses offices for U.S. Immigration and Customs Enforcement and the FBI. The building has been a magnet for protests against President Donald Trump’s immigration crackdown.

Arrabaca, wearing glasses and a black sweatshirt, sat quietly between his lawyers at his initial appearance in Manhattan federal court. He nodded at times as they explained what was happening. He was not required to enter a plea. The charge, arson or explosion causing damage to U.S. government property, carries a minimum sentence of seven years in prison.U.S. Magistrate Judge Robyn F. Tarnofsky ordered Arrabaca jailed at a federal lockup in Brooklyn, rejecting his lawyer’s suggestion that he be sent to a locked ward at a Veterans Health Administration facility for a mental health evaluation. Instead, the judge said she wants Arrabaca to be evaluated at the jail as soon as possible.