It happened Friday night at a public housing project in Crown Heights.
The victim, Jahiem Guinn, died where he had lived, the NYPD said.
The cause of the shooting was not immediately clear, the New York Post reported. There were no arrests.
Cops were investigating another Crown Heights homicide that occurred Friday afternoon. The victim in that case was a 39-year-old man whose name was not immediately released, according to the Post.
Shootings in New York City are up more than 68 percent in the five boroughs so far this year compared to the same time period in 2019, WPIX-TV reported Saturday.