Police said officers believed 61-year-old Raul Perales, who was arrested on several charges, including attempted murder, may have been armed when he approached them and would not obey commands.
Perales, who lived with the victim, also suffered knife wounds to his face during the fight, police said.
Police were alerted to the altercation at 6 p.m. after a neighbor on the 1400 block of Pine Street called and told dispatchers Perales had stabbed his girlfriend. Officers found the victim, whom they did not identify, at a neighbor's home.
"The victim told officers that Perales was intoxicated and that during the previous hour (he) prevented her from leaving the residence," Sgt. Joshua Ratcliffe said.
He then attacked her with a knife and chased her into the yard, where he tackled her, he said.
"He was trying to cut her neck while saying that he was going to kill her," Ratcliffe said. "The victim grabbed the blade, which caused several injuries to her hands."
Ratcliffe said the victim was eventually able to grab the knife away from Perales and threw it into another neighbor's yard.
That's when Perales drove away, police said.
Officers set up a perimeter around Pine Street near the home and blocked off the street. At 6:30 p.m.
When the officer ordered Perales out of the vehicle, he reportedly sped away, lost control and crashed into a parked car.
Then, Ratcliffe said, Perales got out of the car and began walking toward officers in a threatening manner, with both hands concealed.
They then shot him with three rounds of beanbags.
"After the third beanbag round, he fell to the ground and officers took him into custody," Ratcliffe said.
He was booked at Santa Rita County Jail in Dublin on suspicion of attempted murder, false imprisonment, inflicting corporal injury on a cohabitant and driving under the influence of alcohol.