The state attorney general’s office is investigating an off-duty police officer’s fatal shooting of a man who apparently attacked him during a case of road rage early Monday.

The New York City Police Department officer was driving his personal vehicle in the East New York neighborhood of Brooklyn shortly after midnight when he was involved in a traffic dispute with Delrawn Small, police said.