Scene of Manhattan bombing
Scene of Manhattan bombingReuters

Akayed Ullah, the suspect in the New York City subway blast on Monday, posted a message to President Donald Trump on his Facebook page just before the attack, NBC News reported Tuesday.

"Trump you failed to protect your nation," said the taunting post, as quoted in the criminal complaint filed Tuesday against Ullah.

The 27-year-old also posted a second message that "he believed would be understood by members and supporters of ISIS to convey that Ullah carried out the attack in the name of ISIS," the complaint said.

Ullah, a Bangladeshi immigrant who lives in Brooklyn, allegedly detonated a crude pipe bomb packed with screws in a subway passageway near Port Authority Bus Terminal during the morning rush on Monday.

He was charged on Tuesday with supporting an act of terrorism and making terrorist threats, as well as with criminal possession of a weapon. Federal terrorism charges are expected next week, according to reports.

CNN cited an unnamed law enforcement source who said Ullah told investigators he was upset with an unspecified “incursion into Gaza.”

The New York Times reported that he told investigators that he set off the bomb in retaliation for U.S. airstrikes on Islamic State (ISIS) targets in Syria and elsewhere, while NBC cited law enforcement officials as saying he did it in the name of ISIS to avenge the deaths of Muslims around the world.

Ullah, who has a green card, moved to New York from Bangladesh in 2011 with the help of two U.S. policies that have been criticized by the White House: a visa lottery that allowed an uncle to come to U.S. and then sponsor Ullah and other relatives through a family visa program sometimes called "chain migration."

Authorities said Ullah was not on their radar before Monday, though according to the complaint, he became radicalized about three years ago by consuming ISIS propaganda online.

After moving to New York, he was a licensed cab driver from March 2012 to March 2015, according to a spokesman for the New York City Taxi and Limousine Commission. More recently he was working as an electrician, according to NBC News.