The 27-year-old Brooklyn man, Akayed Ullah, who tried to blow himself up inside a New York City subway corridor at rush hour on Monday, posted a warning on his Facebook page to President Donald Trump just before the attack.
“Trump you failed to protect your nation,” it read.
The post was among the charges filed by federal prosecutors against Ullah on Tuesday.
Ullah is charged with providing material support to a foreign terrorist organisation, making weapons of mass destruction, using them to bomb a public place, making a terrorist threat and destruction of property.
The federal complaint includes Ullah’s statement after his arrest that he did it for the Islamic State and that he was provoked by American airstrikes on IS targets.
A search at the suspect’s home in Brooklyn revealed metal pipes, pieces of wire and metal screws which resembled the bomb materials recovered at the crime scene.
Ullah, who hails from Chittagong in Bangladesh, came to the US on a family visa six years ago. But his wife remained in her hometown. He used to visit his family. His last visit was in September this year.
While his family is being questioned to know how he was radicalised, Bangladeshi government says Ullah had no criminal record.
The attempted terrorist attack gave ammunition to Trump who is facing criticism for recognising Jerusalem as Israel’s capital and imposing a travel ban on citizens of six majority-Muslim countries from entering the US for a period of 90 days.
Trump said the subway bombing underlined the need for major changes he has proposed to the US immigration system.
According to authorities, Ullah wanted to target large number of commuters at the Port Authority Bus Terminal. But his plan failed as he succeeded only partially to detonate the homemade bomb strapped to his body. Also it went off too early at the passageway between West 42 Street and Eighth Avenue and West 42nd Street and Seventh Avenue around 7.40 am.
New York Mayor Bill de Blasio described the incident as disturbing as it happened in the heart of the city. The suspect is believed to have acted alone, he said.