An apartment building collapsed in a fiery burst of rubble on Thursday and flames spread to nearby buildings in what officials said appeared to be a gas-related explosion, injuring 19 people and scattering debris across surrounding streets in the heart of Manhattan's fashionable East Village.

Orange flames billowed and smoke could be seen and smelled for miles after the blaze, in an area of old tenement buildings that are home to students and longtime residents in an area near New York University and Washington Square Park.

About 250 firefighters converged to fight the flames, and the fire department's commissioner said a second building was "in danger of possible collapse" and four buildings were affected in all.

Mayor Bill de Blasio said the blast appeared to have been caused by plumbing and gas work inside one building. A plumber was doing work connected to a gas service upgrade, and inspectors from utility Con Edison had been there to check on a planned meter installation about an hour before the fire, company President Craig Ivey said. But the work failed the inspection, partly because a space for the new meters wasn't big enough, and the inspectors said gas couldn't be introduced to that part of the building, Con Ed said.

Explosion's force damages nearby buildings

Firefighters said 19 people were hurt, four critically, some with burns to their airways. De Blasio said it didn't appear that anyone was missing.

"We are praying that no other individuals are injured and that there are no fatalities," he said.

De Blasio said no one had reported a gas leak to authorities before Thursday's blast. Con said it had surveyed all the gas mains on the block Wednesday and found no leaks.

White smoke billowing from scene of major fire in east village. Reports of building collapse then fire next door <a href="https://twitter.com/hashtag/CBC?src=hash">#CBC</a> <a href="http://t.co/NCXMk7LNAu">pic.twitter.com/NCXMk7LNAu</a> —@cbcsteve

The fire happened a little over a year after a gas explosion in a building in East Harlem killed eight people and injured about 50. De Blasio noted that no one had reported a gas leak to authorities before Thursday's blast.

The area was evacuated, and the city's health department advised residents to keep their windows closed because of the smoke.

Adil Choudhury, who lives a block away, ran outside when he heard "a huge boom."

"Already there was smoke everywhere" when he saw the building, he said. "The flames were coming out from the roof. The fire was coming out of every window."

Items from a ground-floor sushi restaurant were blown into a street, and the explosion was so forceful that it blew the door off a cafe across the avenue. Rubble, glass and debris littered sidewalks.

Con Ed crews planned to start investigating after firefighters got the blaze under control. The state Department of Public Service was monitoring Con Ed's response, Gov. Andrew Cuomo said.

In the aftermath, one person was lying on the ground, being attended to by two to three passers-by who were holding his head still, Seto said. A woman was sitting on the curb with blood coming down her face, and another woman walked past him with blood on her face, he said.