A Vermont woman was able to escape a bear that attacked her, and her Jack Russell terrier may have been what prevented a fatal encounter. 

The incident happened on Aug. 20 in the town of Strafford, about 25 miles southeast of the capital city of Montpelier. The woman, 61-year-old Susan Lee, said she was on a walking trail on her property with her two dogs, a Jack Russell terrier and labradoodle, the Vermont Fish and Wildlife Department said in a news release.

Officials said Lee had recalled her dogs after they moved out of her sight when she heard a “loud noise,” only to realize a bear was charging her. As the bear got closer, Lee said she tripped on a stone wall. 

“She then felt pain on her upper left leg and realized the bear was on top of her and had bitten her,” officials said. 

After Lee was bitten, she said her Jack Russell terrier began to bark at the bear, which got the bear’s attention as it got off the woman. Lee told officials that she was able to get up after the bear focused on the dog and began to retreat down the trail. Her terrier followed her, and the labradoodle later returned home. The bear was not spotted again. 

What should you do if you see a bear?:Don’t turn and run, expert warns

What’s everyone talking about?:Sign up for our trending newsletter to get the latest news of the day

Lee was able to return to her home, where she had a neighbor transport her to a local hospital while she called 911 to report the incident.

Lee suffered a bite wound on her upper left leg and “multiple scratches” between two-to-nine inches long on both sides of her body, officials said. Her injuries were determined to be non-life threatening and was later released for the hospital.

The terrier was not injured, with Game Warden Sgt. Jeffrey Whipple telling USA TODAY the dog performed “some ninja moves” to avoid the bear.