A man wielding a pellet gun was shot Saturday afternoon by Santa Barbara County sheriff's deputies after he shot four people, including two sheriff's deputies, authorities said.

All four victims of the pellet gun shooting were expected to recover. The pellet gun shooter was taken to a local hospital, but authorities did not provide information about his condition. Sheriff's spokesman Drew Sugars said authorities could not immediately identify him.

Deputies responded just before 1 p.m. to a call about an aggressive panhandler at a shopping center in Goleta. When they got there, they found the suspect in a vacant lot on the east side of Storke Road holding a weapon, Sugars said.