BROWNSVILLE, BROOKLYN -- An off-duty police officer shot a robber in the face in Brooklyn Thursday morning, said police.

A cop shot the man who tried to rob him near the corner of Livonia and New Jersey avenues at about 4:55 a.m., police said.

The would-be robber, a man in his 20s, was rushed to Brookdale Hospital in serious but stable condition and the police officer was treated for ringing in his ears at Methodist Hospital, said police.