A man was killed when a blaze broke out at a public housing complex in Manhattan, police said Thursday.

Emergency crews rushed to a fire in the bedroom of a fourth-floor apartment of the Park East Houses on East 122nd Street in Harlem at about 2:30 p.m. Wednesday, officials said.

After putting out the flames, they found 55-year-old Darryl Barnes inside the bedroom with severe burns across his body, cops said.

He was taken to NYC Health & Hospitals/Harlem, where he was pronounced dead.

The fire marshal will determine the cause of the fire and the medical examiner will determine Barnes’ cause of death, officials said.