Police say the shooting occurred around 2 p.m.
It happened in the Gowanus housing development on Baltic Street, near downtown Brooklyn.
Police say the man was in his 30s and lived in the building.
Residents were kept out of the building while police looked for evidence.