ELMIRA, N.Y. — A fire tore through a home, spewing flames from the windows and killing four children, neighbors said.

The four victims had been pulled from the burning upstate New York home by firefighters and medics but died later.

The blaze swept through the two-story home, on a tidy block in the riverside city of Elmira, south of New York’s Finger Lakes near the Pennsylvania border, on Friday night. Fire officials said the building was engulfed in flames when they arrived.

Police didn’t immediately release the names and ages of the victims but confirmed on Saturday that children were among them.

Firefighters had the blaze under control fairly quickly, officials said. The victims were found on the second floor in the home.