Updated

It was a night of mayhem for three New York Police Department officers who were wounded in two separate shooting incidents in Brooklyn and the Bronx on Thursday, authorities said.

The Brooklyn shooting took place at about 7:30 p.m. at the Fort Hamilton Parkway subway station at 62nd Street, according to Police Commissioner Raymond Kelly.

Two plainclothes officers assigned to Transit District 34, Michael Levay and Lukasz Kozicki, were on patrol when they observed a man moving between cars, a violation of transit regulations, Kelly said.

As the train approached the station, Kelly said the officers approached the man, who was sitting down, and asked him for his identification.

The man stood up and appeared to reach for his wallet, but instead "pulled a 9-millimeter Taurus handgun from his waistband and opened fire," Kelly said.

Kozicki, 32, was struck three times, once in each of his upper thighs and once in the groin. Levay, 27, was shot in the lower back, but his vest stopped the bullet. Kelly said he managed to return fire, killing the suspect. A passenger in the same car was grazed in the leg. No one else was injured.

Both officers were listed in stable condition at Lutheran Hospital, according to Mayor Michael Bloomberg.

An hour earlier in the Bronx, officer Juan Pichardo was working off-duty at his family's car dealership, when two men, one armed with a handgun, entered the dealership while two other men waited outside in a getaway car, Kelly said.

After the two feigned interest in buying a car, one of them pulled out a handgun and ordered Pichardo and an employee onto the floor in a back office and started to ransack the place.

"A few minutes after the robbery, Officer Pichardo stood up and grabbed the gunman, who fired, striking the officer in the right thigh," Kelly said.

Although wounded, Pichardo and the other employee wrestled the gunman to the ground and disarmed him. His accomplice fled in the getaway car with the two others, but they were stopped a short distance away and arrested.

Kelly said Pichardo had recognized the gunman as a member of a Bronx robbery crew.

"Tonight, we're just grateful that these three officers will be going home to their families," Bloomberg said.