NEWARK, N.J. (WCBS 880) -- A New Jersey police officer who was shot Tuesday night was released from a hospital just hours later.

The Newark officer, Nicholas Edert, 23, was shot just after 8:30 p.m. Tuesday near 14th Avenue and 14th Street.
Mayor Ras Baraka said officers approached a suspicious person to question him when he pulled out a gun and opened fire. He was hit in the leg.
“Pulled his gun out immediately and began shooting without provocation,” Baraka said. “It’s just a good thing that the officer is well and alive and alert.”
Police said the suspect in the shooting was taken into custody with officers having to fire a shot, and a gun was recovered.
Dozens lined up outside a hospital Wednesday to show support for the officer after he was released.
The officer was promoted to detective upon his release, by Baraka and Public Safety Director Brian O'Hara.
More information about the suspect wasn’t immediately available.