HAYWARD, Calif. (AP) — Sheriff’s officials in Northern California say a deputy shot and wounded a man who attempted to attack deputies with a machete.

Alameda County sheriff’s spokesman Ray Kelly says the shooting occurred after deputies responded to a report of domestic violence early Monday morning at a home in unincorporated Hayward in the San Francisco Bay Area.

READ MORE: Stimulus Check Latest: Is A Fourth Relief Payment Coming?

A woman said she had been assaulted by her husband and directed deputies to the back of the house, where they found the man.

READ MORE: 2 Juveniles Arrested After Mother, Son Found Critically Injured In Elverta

Kelly says before deputies could detain him, the husband retrieved a machete from his waistband. A deputy fired one shot that struck the man.

MORE NEWS: 'Intense' Yellowjacket Activity Reported Around Sacramento Area, Vector Control Says

He was taken to a hospital. He is expected to survive.