Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

May 22, 2015, 3:45 AM UTC / Updated May 22, 2015, 11:29 AM UTC

An elderly woman in California shot a police robot and held authorities at bay for 22 hours after she called them to a mobile home and pulled a gun on them, sheriff's deputies said.

Los Angeles County sheriff’s deputies said they finally took her into custody early Friday in a “peaceful resolution.” They said she would be charged with assault with a deadly weapon against a firefighter.

On Thursday morning, the woman called authorities and said she was having a medical emergency and needed help at a mobile home in the unincorporated town of Topanga.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

An elderly woman armed with a gun barricaded herself in this mobile home park in Topanga, California. NBC LOS ANGELES

When deputies and paramedics showed up, the woman — who wasn't identified but who sheriff's deputies told NBC Los Angeles is 70 years old — pulled a handgun, authorities said. The initial responders retreated and called for backup, and the surrounding areas of the mobile home park were evacuated.

Follow This Story on NBC Los Angeles

Then things got weird.

As Angelenos watched on live television, deputies threw in a "flash bang" stun grenade, to no apparent effect. They also sent in a robot to check on the woman.

She shot it.

Topanga Cyn update - More shots fired by susp., #LASD SEB SWAT using tactics to defuse & safely resolve situation. pic.twitter.com/SF2qWnRmNq — SEB (@SEBLASD) May 22, 2015

After that, sheriff's personnel and crisis negotiators "worked tirelessly throughout the day using various tactics to try and persuade the woman to surrender peacefully," the sheriff's department said Thursday night, while the standoff was still going on. The woman remained barricaded, though.

Damage to the robot wasn't made public.

NBC News' Shamar Walters contributed to this report.