The man accused of detonating a pipe bomb strapped to his body inside a New York City subway station on Monday addressed President Trump on Facebook shortly before the attack, saying in a post "you failed to protect your nation," federal prosecutors said.

Akayed Ullah is charged with five federal counts, including detonating a weapon of mass destruction and providing material support to ISIS, according to a federal complaint released Tuesday.

According to investigators, at 7:20 a.m. on Monday, an improvised explosive device was detonated inside a subway terminal near New York City’s Port Authority bus terminal at West 42nd Street and 8th Avenue in Manhattan.



Shortly after the attack, police discovered Ullah lying on the ground in the area of the blast and he was taken into custody.

Police found a 9-volt battery inside Ullah's pants pocket, wires connecting the battery under his jacket, two plastic zip ties, several fragments of metal pipe, metal screws, and fragments of a Christmas tree light bulb.

Ullah was taken to a local hospital for treatment of his injuries, including burns to his body. Three other people were treated for minor injuries.

At the hospital, Ullah was interviewed by investigators. Based on his statements, they believe he constructed the pipe bomb at his Brooklyn residence about a week before the attack.

Ullah also allegedly told investigators from his hospital bed, “I did it for the Islamic State.”

Ullah came to the US from Bangladesh in 2011, the Department of Homeland Security said. According to the complaint, Ullah became radicalized in 2014 when he began viewing pro-ISIS videos online and started researching how to construct a homemade bomb.

After the attack, police searched Ullah’s Brooklyn home, finding materials such as metal pipe, screws, fragments of Christmas tree lights, and a passport with Ullah’s name with handwritten notations, including: “O AMERICA, DIE IN YOUR RAGE.”