Deputies say it happened on West Shields Avenue near Yuba Avenue, northwest of Kerman.
Authorities say a man asked farmworkers if he could help and then started shooting at them.
None of the farmworkers were hit, and they hid in a shop while deputies searched for the suspect in the field.
The man was eventually found and taken into custody.
A motive for the attack has not yet been released.