The suspect, who has been identified as Urbano Moreno Morales, 48, allegedly stabbed the woman at the 1001 McClelland Drive cafe shortly before 7:30 a.m., according to a statement from Santa Rosa Police Capt. Craig Schwartz.
The woman, a Windsor resident, is being treated for major wounds she suffered in the attack but will survive, Schwartz said. Her identity is being withheld because she is the victim of a domestic violence incident.
Morales allegedly fled toward the Windsor Town Green and Police Department after slashing the victim.
He fled from one deputy, who reported that he was slashing himself with a knife, but was stopped at gunpoint by two other deputies near the police department.
The deputies shouted commands at Morales and attempted to use a Taser to take him into custody, but when he ignored their commands and charged at them they opened fire, Schartz said.
Morales was pronounced dead at 7:38 a.m.
Investigators have since determined that Morales and the victim had a previous romantic relationship and an adult child together.
The Santa Rosa Police Department and the Sonoma County District Attorney's office are investigating the officer-involved shooting.