A 52-year-old man was gunned down outside a Brooklyn apartment building on Friday, cops said.

The victim was shot multiple times on Lenox Road near Nostrand Ave. in Prospect Lefferts Gardens around 3:29 p.m., according to law enforcement.

Medics rushed the man to Kings County Hospital, where he died.

Police took a person of interest into custody at the scene. No charges were immediately filed.