Investigators say they have arrested 28-year-old Ahmad Khan Rahami, a naturalized U.S. citizen from Afghanistan, in connection with the bombings in New York and New Jersey after a shootout with police Monday in Linden, New Jersey.Â
Rahami was charged in Union County with five counts of attempted murder of a police officer. He was being held on $5.2 million bail and remained at a hospital. Federal officials have charged Rahami with planting the bombs in New York City and New Jersey.
On Saturday night, a bomb exploded in Manhattan's Chelsea neighborhood injuring 29 people. All have been released from a hospital. A second undetonated device was later found at that location. Officials say the two devices found in New York City included pressure cookers, which is similar to the devices used in the 2013 attack at the Boston Marathon that killed three and wounded hundreds of people. The device that exploded also contained residue from the commercially available explosive compound Tannerite.
Also on Saturday, a pipe bomb exploded in Seaside Park in New Jersey ahead of the race for Marines and sailors, no one was injured. Officials say it was constructed with a threaded pipe and black powder.
A federal law enforcement official says evidence links Rahami to the bomb blasts on Saturday both in New Jersey and in Manhattan because the three bombs had one component in common: a flip-style cellphone.
FBI agents say they are also investigating five devices found on Sunday in a backpack near an Elizabeth, New Jersey, train station. One of five devices found exploded while a bomb squad robot attempted to disarm it. No one was injured.
In Linden, New Jersey, Mayor Derek Armstead says the owner of a bar found Rahami sleeping in his hallway Monday morning and he initially presumed the man to be a vagrant, but responding police officers quickly realized it was Rahami. Armstead says Rahami pulled out a handgun and fired at the officers, hitting one in a bulletproof vest and another was grazed by a bullet. Rahami then began firing as he ran down the street when police shot him in the leg. Rahami was conscious when he was taken away in an ambulance.   Â
The two New Jersey police officers wounded in a shootout have been released from the hospital. Linden police say Officer Angel Padilla went home Monday night, several hours after he was shot in the torso. Authorities have said a bulletproof vest saved Padilla from a more serious injury. Officer Pete Hammer, was released Tuesday. Authorities say his head was grazed by bullet or shrapnel as the officers exchanged gunfire with suspect Ahmad Khan Rahami.
A law enforcement official says fingerprints and surveillance video helped investigators identify Rahami.
The official says Rahami is seen in surveillance footage "clear as day" at the scene of the Saturday night bombing in Manhattan and investigators were able to recover his fingerprints from the scene.
          Â
A law enforcement official says Rahami wasn't on any terror or no-fly watch lists but had been interviewed for immigration purposes.
In 2014, Rahami was arrested for stabbing a person in the leg and possession of a firearm, but a grand jury declined to indict him, despite a warning from the arresting officer that Rahami was likely "a danger to himself or others."Â
Officials also say Rahami's father had contacted the FBI following a 2014 stabbing to express concerns that his son was a terrorist, but Mohammad Rahami later retracted his comment and said he meant that his son was hanging out with the wrong crowd, including gangs.
New York City's mayor and police commissioner say no other suspects are being sought at this time.
(Associated Press contributed to this story)
                                Â
