Two New Jersey police officers were shot ambush-style Tuesday night as they were waiting in their vehicle at a red light.

At least one gunman opened fire on the plainclothes detectives in Camden, NJ, just outside Philadelphia, according to Camden police.

“The information we have thus far is that they were essentially ambushed,” Camden County Police Chief J. Scott Thomson said late Tuesday.

“A male walked up and began opening fire. We have anywhere between 10 and 25 rounds that were fired at the officers.”

One of the detectives was able to shoot back, but it wasn’t clear if anyone was hit.

Both detectives were at a hospital Tuesday night and were expected to survive.

“Our officers have non-life-threatening injuries but not for the grace of God, quite frankly,” Thomson said.

“The amount of rounds that were fired at close range and particularly through the windshield.”

Police called the attack “unprovoked” and were trying to determine whether the shooter targeted the pair because they were cops.

The shooting occurred on National Night Out, an event designed to bring local police and the communities they serve together.

With AP