The engineer of a freight train told police that he tried to stop Wednesday night when he saw a dog pulling an unconscious woman away from the tracks near a railway crossing, the center said in a statement.

The woman, Lanteigne’s mother, was unharmed, but the dog suffered severe injuries. It required several surgeries, including leg amputation, and is now recovering at Angell’s emergency and critical care unit.

Veterinarians said in the statement that it is likely Lilly will recover and eventually return home.