NEW YORK (CBSNewYork) — A suspect wanted in the bombings thatrocked Chelsea and Seaside Park, New Jersey was captured Monday after an intense manhunt that ended in a gun battle with Linden police.

The arrest came just hours after the FBI, NYPD and New Jersey StatePolice issued bulletins and photos of Ahmad Khan Rahami, a 28-year-old naturalized U.S. citizen from Afghanistan with an address in Elizabeth, New Jersey.

The gunfight erupted after Linden Mayor Derek Armstead said he owner of a bar reported someone asleep in his doorway late Monday morning. A police officer went to investigate and recognized the man as Rahami, police and the mayor said.

“The suspect pulled out a gun and fired at the officer and striking him in the abdomen,” Capt. James Sarnicki with Linden police told CBS2. “The gentlemen got up and started walking down the street in a westerly direction. I’m told that he was randomly discharging his handgun and one of the officers was able to get close enough to him and return fire.”