A would-be suicide attacker detonated a pipe bomb strapped to his body in the heart of Manhattan’s busiest subway corridor on Monday, sending thousands of terrified commuters fleeing the smoke-choked passageways, and bringing the heart of Midtown to a standstill as hundreds of police officers converged on Times Square and the surrounding streets.
But the makeshift weapon failed to fully detonate, and the attacker himself was the only one seriously injured in the blast, which unfolded just before 7:20 a.m.
Law enforcement officials said the attacker, identified by the police as Akayed Ullah, 27, chose the location because of its Christmas-themed posters, a motive that recalled strikes in Europe, and he told investigators that he set off his bomb in retaliation for United States airstrikes on ISIS targets in Syria and elsewhere.
It was the third attack in New York City since September 2016, and the second in two months, coming only weeks after eight people were killed in a truck attackalong a Hudson River bike path. Like the earlier two, the attack on Monday appears to have been carried out by a so-called “lone-wolf” terrorist.
The explosion on Monday morning echoed through the subway tunnels just off Times Square and filled parts of the Port Authority Bus Terminal with smoke as commuters fled. Even as smoke still filled the chamber, Mr. Ullah was subdued by Port Authority police officers.
After he was subdued, Mr. Ullah was taken to Bellevue Hospital Center, where he was in serious condition with burns to his hands and abdomen, according to Daniel A. Nigro, the commissioner of the New York Fire Department. Three other people had minor injuries, he said.
An immigrant from Bangladesh, Mr. Ullah came to live in Brooklyn through a visa program available to people who have relatives who are United States citizens.
On Monday afternoon, in his first remarks on the attack, President Trump assailed the current immigration system that allows for extended family members, and not just spouses or minor children, to receive green cards.
“The terrible harm that this flawed system inflicts on America’s security and economy has long been clear,” Mr. Trump said in a statement. “I am determined to improve our immigration system to put our country and our people first.”
The attack occurred in a long pedestrian walkway connecting the Eighth Avenue, Seventh Avenue and Broadway subway lines. Among the commuters traveling beneath Times Square was a man in a hooded sweatshirt. Then came a deafening boom — from him — and then smoke.
A Look Beneath the Port Authority, Where a Bomb Exploded
The explosion occurred in the underground passageway connecting the Times Square and Port Authority subway stations in Manhattan.
Mr. Ullah had attached the pipe bomb to himself with a “combination of Velcro and zip ties,” said James P. O’Neill, the commissioner of the New York Police Department. It was crudely composed of a length of pipe stuffed with match heads, its ends stopped up. A broken Christmas tree light was the detonator: When lit, the filament ignited the match heads, the device powered by a nine-volt battery.
The explosion, captured on surveillance video, burned and cut Mr. Ullah, but because it did not detonate properly, it did not produce shrapnel, often the deadliest element of a pipe bomb.
“I think he was prepared to die, and we see him connect the wires on the video,” said a law enforcement official who spoke on the condition of anonymity because the assessment of the suspect’s actions was still preliminary.
As people streamed through the station, Officer Anthony Manfredini of the Port Authority Police Department rushed toward the smoke, said Robert Egbert, a spokesman for the main police union that represents Port Authority officers. A former marine, Officer Manfredini, 28, found the suspect on the ground with “visible wires coming from his jacket into his pants,” Mr. Egbert said.
Three other Port Authority officers followed: Jack Collins, Sean Gallagher and Drew Preston. They arrived just as Mr. Ullah was “reaching for a cellphone,” which the responding officers thought might be used to trigger another device, Mr. Egbert said. They dived and wrestled it from him.
“These officers went into this situation blind, only becoming aware of the danger involved once they confronted the suspect,” Mr. Egbert said.
Police released a photo of Mr. Ullah that appeared to have been taken inside the subway walkway after the blast. In it, he is curled in a fetal position; his exposed stomach is blackened.
Mayor Bill de Blasio found himself for the second time in two months calming the city after a terrorist attack, in this case, on the system that moves millions of people across the city every day.
“Our lives revolve around the subway,” he said at a news conference on Eighth Avenue a few hours after the incident. “The choice of New York is always for a reason, because we are a beacon to the world. And we actually show that a society of many faiths and many backgrounds can work.”
“The terrorists want to undermine that,” the mayor added. “They yearn to attack New York City.”
Investigators, led by the Joint Terrorism Task Force, believe Mr. Ullah acted alone, but they only have just begun to review materials from the searches and other leads.