A 28-year-old Afghan native is being sought in connection with explosions in Manhattan and New Jersey that left 29 wounded and sparked fears of a local terror cell, according to federal officials.

Early Monday, FBI agents raided the Elizabeth, New Jersey, home of Ahmad Khan Rahami, a naturalized US citizen who could be armed and dangerous, New York City Mayor Bill de Blasio said.

“We need to get this guy in right away,” de Blasio said on CNN. “My experience is once the FBI zeroes in on someone, they will get them.”

Rahami is believed to be operating a 2003 blue Honda Civic bearing New Jersey registration D63EYB, New Jersey State Police say.

Speaking also on ABC’s “Good Morning America,” de Blasio said: “We know a lot more than we did just 24 hours ago. It’s certainly leaning more in the direction that this was a specific act of terror.”

The apartment search began after one of five devices found near an Elizabeth train station exploded while a bomb squad robot tried to disarm it. No one was injured.

Authorities have evidence that Rahami also was connected to an unexploded device on 27th Street and a blast Saturday morning at Seaside Heights, New Jersey, ahead of a race for Marines and sailors, the New York Times reported.

A law enforcement official told the paper there is no direct evidence yet linking Rahami to ISIS or al Qaeda.

“We don’t know his particular ideology or what his inspiration was or whether he was directed or whether he was inspired,” the official said. “We don’t have any of that.

“So, the ideology, the connection to international terrorism, we might flesh that out as we go through the results of search warrants, looking for computers, discs, things like this. Search warrants that we did Sunday night at the residence in Elizabeth,” the official added.

“Here’s a guy who has been involved in what appears to be four bombings in rapid succession in recent days in crowded places,” the official said. “So we need to get him.”

A senior law enforcement official told NBC News that officials believe Rahami is the man seen in surveillance video taken Saturday night in Chelsea.

Authorities were able to identify Rahami with the help of a cellphone left behind with an unexploded pressure cooker found on West 27th Street — blocks away from the explosion on West 23rd Street, a source told ABC News.

Rahami is about 5 feet 6 inches tall and weighs about 200 pounds. He has brown hair, brown eyes and brown facial hair.

The feds, included members of the Bureau of Alcohol, Tobacco, Firearms and Explosives, raided an apartment where Rahami lives above the family’s restaurant — First American Fried Chicken — on Elmora Avenue.

Elizabeth Mayor Chris Bollwage said the raid at an apartment, where a man lives with his son, was related to the incident in Chelsea on Saturday.

Gov. Andrew Cuomo now believes there may be a “foreign connection” with the explosion Saturday night in Chelsea.

“I suspect there may be a foreign connection,” Cuomo told CBS News. “That’s what we are hearing today, as the investigation goes on.”

Cuomo hedged, however, suggesting that it is still unknown where the investigation will end up.

“But, again, I was the former attorney general in New York and I did many — I participated in many of these investigations. They take different twists and turns. So you want to be careful what you say early on because you want to protect the information, but that would be my guess,” he said.

Cuomo refused to say whether he believed ISIS was directly behind this attack — and the possibly related attacks in New Jersey.

The White House said President Obama was briefed throughout the night and early Monday on the investigation.

Spokesman Josh Earnest said Obama — who planned to meet Iraqi Prime Minister Haider al-Abadi during the UN General Assembly in Manhattan — would comment publicly “relatively soon.”

Ryan McCann, 33, said Rahami has been working behind the counter at his father’s eatery for about five years.

“He’s a very friendly guy, very Americanized. You would never expect anything like this. It’s terrifying because he’s been hiding in plain sight,” McCann told The Post.

The suspicious devices in New Jersey were found in a backpack near a train station in Elizabeth late Sunday. One detonated when a bomb squad robot tried to disarm it.

“I’m extremely concerned for the residents of the community, but more importantly extremely concerned for everyone in the state and country where someone can just go and drop a backpack into a garbage can that has multiple explosives in it,” Bollwage said. “You have to wonder how many people could have been hurt.”

The discovery came a day after a blast in Chelsea at West 23rd Street injured 29 people and an unexploded pressure-cooker device was found nearby on 27th Street.

The second device, which was defused safely, was sent to the FBI in Virginia for forensic examination.

Bollwage said two men called police and reported seeing wires and a pipe coming out of a package they found in a trash can about 8:30 p.m.

People reported hearing a loud explosion and smelling gunpowder early Monday. Bollwage earlier said a bomb squad robot indicated that the package could have been a live bomb. There was no report of injuries.

Meanwhile, the FBI agents arrested five men of Muslim descent who may be connected to the Chelsea blast after stopping their car in Brooklyn, a source said.

The men were heading over the Verrazano Bridge from Staten Island when they were stopped Sunday night.

Sources said the FBI suspected the men may have had a role in the bombing and were questioning them at FBI headquarters in Manhattan.

It is believed the men, who live in New Jersey, were heading to the airport when they were busted.

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, a federal official said Sunday.

Cellphones were discovered at the site of the bombings, but no Tannerite residue was identified in the New Jersey bomb remnants, in which a black powder was detected, said the official, who wasn’t authorized to comment on an ongoing investigation and spoke to the Associated Press on condition of anonymity.

Also on Sunday, FBI agents searched an Uber driver’s vehicle that had been badly damaged in the Chelsea blast after the driver picked up three passengers.

In other developments, New Jersey Transit trains resumed service on the Northeast Corridor and North Jersey Coast Line at 5:30 a.m. Monday, but they faced residual delays because service was suspended after the explosive devices were found, the AP reported.

Amtrak was operating on a modified schedule.

Train passengers reported being stuck on Amtrak and NJ Transit trains for hours Sunday night, while some trains moved in reverse to let passengers off at other stations.