GAITHERSBURG, Md. (AP) — Montgomery County fire officials say five firefighters were left with minor injuries after the roof of a burning home collapsed in Gaithersburg.

Fire department spokesman Pete Piringer says crews called to the home on Leekes Lot Way early Thursday found heavy fire coming from the second floor. A short time later, officials say part of the roof collapsed on five firefighters, but they were able to escape. All five were treated at a local hospital and released.

Officials say a man who was inside the home when the fire started was able to escape safely. Piringer says the man told investigators that he built a fire, which apparently spread to the chimney and roof.

Damage is estimated at $800,000.

(Copyright 2015 by The Associated Press. All Rights Reserved.)