An NYPD sergeant was fired on Friday in connection with his off-duty shooting of a romantic rival in Brooklyn earlier this month, sources told The Post.

Ritchard Blake, 40, was canned amid an Internal Affairs investigation into his shooting of Thavone Santana, 21, in the early hours of Aug. 2, police sources said.

Surveillance video footage shows Blake firing at Santana in the street outside the East New York building of the cop’s gal pal, Debbie Lima, 33.

Santana, who survived the shooting on Livonia Avenue near New Jersey Avenue, appeared to be turning away from Blake when the cop opened fire.

The video also appears to show Blake placing something alongside Santana as he’s lying wounded on the ground.

Moments before the shooting, Blake, Santana and Lima were all screaming at each other in Lima’s doorway with Santana at one point telling Blake, “Control your bitch!” neighbors said.

Even before he was sacked by the NYPD, Blake had been stripped of his badge and gun in connection with the shooting.