Two men shot, one fatally, outside Brooklyn NYCHA building

A gunman opened fire on two men, killing one of them, as they exited a Brooklyn apartment building, cops said Saturday.

The two victims, ages 20 and 21, were leaving the Moore St. building near Humboldt St. — part of NYCHA’s Bushwick Houses — about 11:55 p.m. Friday when a gunman began blasting away at them, cops said.

A 21-year-old man was shot in the head. The other victim was grazed in the head, ears and legs as bullets zipped by him, according to police.

EMS rushed the older victim to Elmhurst Hospital, where he died of his injuries. His name was not immediately disclosed.

The younger victim showed up at Woodhull Hospital shortly after his shooting and was treated for minor injuries.

When questioned, he told police he was at the scene when the suspect opened fire.

The gunman and another suspect fled the scene on a red moped, according to early reports. One of the men was wearing a polka dot shirt and was carrying a backpack.

No arrests have been made. Police were scouring the area for surveillance footage that could help them identify the gunman.