One student ran to find a teacher, who came with a blanket and an extinguisher to snuff out the flames, Rodman told the station. The cellphone fell out of the girl's pocket as the students were helping remove the burning pants.

The girl was treated for first- and second-degree burns at nearby Southern Maine Medical Center in Biddeford, Maine.