NEW YORK (AP) — The New York Police Department says an off-duty officer has shot and wounded a man who tried to rob him in Brooklyn.

Police say the 21-year-old man was in stable condition after he was shot in the mouth early Thursday. It happened at the intersection of Livonia and New Jersey avenues.

The officer was taken to a hospital with ringing in the ears caused by the sound of the gunshot.