A suspect wanted for questioning over the bombings that rocked New York City and New Jersey is in custody after being wounded in a shootout with police that erupted when he was discovered asleep in the doorway of a New Jersey bar, authorities said.
WABC-TV footage showed a man believed to be 28-year-old Ahmad Khan Rahami being loaded into an ambulance on a stretcher in Linden, New Jersey. He appeared to be conscious and looking around.
Two officers were wounded in the gun battle but were not believed to have been seriously hurt, authorities said.
Linden mayor Derek Armstead said that the owner of a bar reported someone asleep in the doorway of his business. A police officer went to investigate and recognised the man as Rahami, police and the mayor said.
The arrest came just hours after police issued a bulletin and photo of Rahami, a naturalised US citizen from Afghanistan with an address in Elizabeth, New Jersey.
Authorities said the blasts were looking increasingly like an act of terrorism with a foreign connection.
Police did not disclose how they zeroed in on Rahami as a person of interest in the bombing investigation but were known to be poring over surveillance video. At the same time, five people who were pulled over in a vehicle on Sunday night were being questioned by the FBI, officials said.
The shootout came after a weekend of fear and dread in New York and New Jersey.
In addition to the blast that injured 29 people in Manhattan's Chelsea neighbourhood on Saturday, an unexploded pressure cooker bomb was found blocks away, and a pipe bomb exploded in a New Jersey shore town before a charity race. No one was injured there. On Sunday, five explosive devices were discovered in a trash can at an Elizabeth train station.
Also on Saturday, a man who authorities say referred to Allah wounded nine people in a stabbing rampage at a Minnesota mall before being shot to death by an off-duty police officer. The Islamic State group claimed responsibility.
Authorities have not drawn any connection between the violence in Minnesota and the bombings in the New York area.
Citing the FBI, New Jersey State Police said on Monday that the bombings in Chelsea and the New Jersey shore town Seaside Park were connected.
New York governor Andrew Cuomo said as investigators gathered information, they learned there were "certain commonalities among the bombs", leading authorities to believe "that there was a common group behind the bombs".
Mr Cuomo said investigators have no reason to believe there are further threats, but the public should "be on constant guard".
Around the time Rahami was taken into custody, President Barack Obama was in New York on a previously scheduled visit for a meeting of the UN General Assembly, and said it was "extremely fortunate" nobody was killed in the bombings.
He called on Americans to show the world "we will never give in to fear".
"We all have a role to play as citizens to make sure we don't succumb to that fear. And there's no better example of that than the people of New York and New Jersey," the president said. "Folks around here, they don't get scared."
Rahami lived with his family in Elizabeth in an apartment above a fried-chicken restaurant owned by his father, on a busy street a few miles from the Newark airport. Early on Monday, FBI agents swarmed the apartment.
In the immediate aftermath of the New York bombing, New York mayor Bill de Blasio and Mr Cuomo were careful to say there was no evidence of a link to international terrorism. Both said on Monday that appeared to be changing.
"The more we learn with each passing hour is it looks more like terrorism," Mr de Blasio said in an interview on NY1 News. Mr Cuomo said on MSNBC: "Today's information suggests it may be foreign-related, but we'll see where it goes."
On Sunday night, FBI agents in Brooklyn stopped "a vehicle of interest" in the investigation of the Manhattan explosion, according to FBI spokeswoman Kelly Langmesser.
She would not provide further details, but a government official and a law enforcement official who were briefed on the investigation said that five people in the car were being questioned at an FBI building in Manhattan.
On Sunday, a federal law enforcement official said the Chelsea bomb contained a residue of Tannerite, an explosive often used for target practice that can be picked up in many sporting goods stores.
Mobile phones were discovered at the site of both the New York and New Jersey bombings, but no Tannerite residue was identified in the New Jersey bomb remnants, in which a black powder was detected, said the official.
The pipe bomb that exploded Saturday in Seaside Park went off before a charity 5K race to benefit Marines and sailors. The race was cancelled.
One of the five devices found at the Elizabeth train station exploded while a bomb squad robot tried to disarm it. No one was hurt.