This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

NEWARK, N.J. — A police officer in New Jersey’s largest city was released from the hospital Wednesday after he was shot and a suspect was taken into custody, authorities said.

The shooting took place Tuesday night as officers approached a suspicious person to question him, Mayor Ras Baraka said.

“Before the conversation ended, the gentleman pulled out a gun and began opening fire without provocation and struck one of the officers,” the mayor said.

The suspect was taken into custody and a gun was recovered, officials said.

Officer Nicholas Edert, 23, sustained a gunshot wound that was not considered life-threatening, officials said.

Upon release from the hospital, the officer was immediately promoted to detective by Newark Public Safety Director Brian O’Hara, officials said. Mayor Baraka pinned his new badge on him before he was taken home.

Authorities had not released the name of the suspect.