MANHATTAN — An immigrant from Bangladesh who allegedly detonated a bomb in the New York City subway system told authorities "he did it for the Islamic State" and wrote a message to President Donald Trump the morning of the attack, according to a criminal complaint made public on Tuesday.
The complaint alleges that Akayed Ullah, while on his way to carrying out the attack, posted on his Facebook account on Monday.
"Trump you failed to protect your nation," he allegedly wrote.
He also scrawled "O AMERICA, DIE IN YOUR RAGE" on a passport found at his home, according to the complaint.
Federal authorities have charged Ullah in Monday's failed suicide bombing with providing material support to terrorists and using weapons of mass destruction.
It left Ullah with burns to his body and hands and multiple pedestrians with harmed hearing and headaches. The "low-tech" bomb strapped to Ullah's body went off in an underground passageway near Times Square during the height of the morning rush hour.
Prosecutors said the 27-year-old who lived in Brooklyn and came to the U.S. in 2011 on a family visa was radicalized online since 2014.
Ullah allegedly chose the time and location -- 7:30 a.m. on a weekday in a busy underground corridor connecting the Port Authority and Times Square subway stations -- to maximize casualties, prosecutors said.
He built the faulty bomb about a week before the attack, prosecutors said. He filled the explosive device with metal screws and used Christmas tree lights, wiring and a nine-volt battery to make it.
Ullah is expected to appear before a magistrate judge Tuesday or Wednesday, likely appearing via video from his hospital bed.