Santa Clara police officers have shot and killed a middle aged woman who allegedly swung at them with an aluminum baseball bat.

According to Santa Clara police Lt. Kurt Clarke, officers were called to the Riverwood Place apartment of an as-yet-unnamed 53-year-old woman on Sunday at 4:50 PM.

Clarke says that the woman had called 911 saying that she planned to harm herself and others. The Chron reports that in the call, she "said she had taken pills, wanted police to shoot her and would attack officers with a bat."

When officers arrived at her home, the woman, true to her word, attacked the officers with an aluminum baseball bat, Clarke says. The officers, who "feared for their safety," Clarke says, fulfilled the woman's stated wish and shot her.

The woman was treated at the scene, then was transported to a hospital where she died of her injuries, Clarke says.

Santa Clara's medical examiner has yet to identify the woman. Clarke declined to identify the officers who shot her. Update: The officers have been identified as Sgt. Alan Wolf, a 25-year veteran with the Santa Clara Police Department, and Officer Andrew McGuire, who has been on the force for the past 22 months.

The incident is under investigation by both Santa Clara police and the Santa Clara County district attorney's office.

According to NBC Bay Area, this is Santa Clara's firtst fatal officer-involved shooting since January 2012, when police officers shot and killed a man during a suspected DUI stop.