It happened just before 11 p.m. Monday on Remsen Avenue near Avenue D in Canarsie.
Police say the man who attempted to rob the officer was shot and taken to Brookdale Hospital in critical condition.
The circumstances that led to the shooting are not yet clear.
Police are looking for two other suspects. One police officer suffered a minor injury.
* More Brooklyn news
* Send us a news tip
* Download the abc7NY app for breaking news alerts