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: Man Reported Missing While Swimming In American River Near I-5 Bridge

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: Rices Fire In Nevada County Now 55% Contained; Several Homes Destroyed

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: One Child Rescued, 3 Adults Missing In Sacramento River Near Rio Vista

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