Bombing Suspect Ahmad Khan Rahami Nabbed; Charged With 5 Counts of Attempted Murder of Law Enforcement Officer

Ahmad Khan Rahami, 28, was seen at the sites where a bomb went off in Manhattan and where a second device was found.

The foreign-born U.S. citizen sought by authorities in connection with bombs found in New York and New Jersey over the weekend has been taken into custody after a shootout with police.

Ahmad Khan Rahami, 28, is believed to have been seen near where an improvised explosive device injured 29 in New York City's Chelsea neighborhood and where a pressure cooker explosive device was subsequently removed by authorities.

Rahami was arrested following a shootout in Linden, New Jersey, before noon Monday.

Late Monday, Union County Prosecutor Grace Park announced Rahami had been charged with five counts of attempted murder of a law enforcement officer and second-degree counts of unlawful possession of a weapon and possession of a weapon for an unlawful purpose.

A state judge set bail at $5.2 million.

According to reports, at least one officer was shot, but was saved by a bulletproof vest. Rahami was also shot.

According to CBS New York, Linden police got a call about a man sleeping in the doorway of a bar Monday morning.

When a responding officer approached the man, the man raised his head, and the officer recognized him as Rahami, Capt. James Sarnicki of the Linden Police Department said.

Rahami then reportedly opened fire on the officer and two officers were wounded by the time shooting ended.

Video footage taken following his arrest shows Rahami being wheeled into an ambulance.

Read: Mayor Calls Manhattan Blast 'Intentional Act' After Exploding Dumpster Injures Dozens

CBS News reports that investigators believe Rahami may be part of a terror cell.

The suspect was found after New York and New Jersey residents were sent cell phone alerts to be on the lookout for Rahami, who is about 5 feet 6 inches tall and weighs approximately 200 pounds. Linden is about 40 minutes from Manhattan.

Born in Afghanistan, Rahami is a naturalized U.S. citizen.

He was identified as a person of interest to authorities through information gathered from the undetonated pressure cooker bomb found blocks away from the Chelsea explosion. 

President Barack Obama addressed the Chelsea bombings as well as the explosives found in New Jersey in a speech he gave Monday morning from New York City.

"They will never beat us," the president said, referring to terrorists.  "As Americans, we do not and never will give in to fear. That’s going to be the most important ingredient in defeating those who want to carry out terrorist acts against us."

On Sunday, five people with possible links to the devices were taken into custody following the discovery of multiple pipe bombs in a garbage can at a New Jersey rail station.

No charges have been filed against the five, who were taken into custody after the SUV they were in was pulled over on the Verrazano Bridge while en route to Brooklyn from Staten Island.

Authorities fear they may have been on their way to JFK Airport to flee the country.

On Monday morning, authorities swarmed an Elizabeth, New Jersey home that is believed to be Rahami's last known address.

All of the people injured in Saturday's Chelsea blast have been released from the hospital. 

Read: Explosive Device Detonates Along Marine Corps Charity Run Route

An earlier incident in the Jersey Shore town of Seaside Park, in which a bomb exploded in a trash can along the route of a Marine Corps charity run, caused no injuries.

New York Governor Andrew Cuomo said: "There are certain commonalities on the way the bombs are constructed" in reference to those found in New Jersey and those in New York City.

"You could have had a common mastermind in the construction of the bombs," Cuomo said. "Today I believe we're going to find out that it was influenced by foreign forces."

Watch: New Yorkers Run From Explosion in Dumpster That Injured 29