An unidentified gunman shot and killed five people in a series of shootings on Wednesday in Southern California before taking his own life, police said.

The man killed his wife and a man at a trucking company in Bakersfield, California, Kern County Sheriff Donny Youngblood told a news conference.

He then chased another man from the trucking company before he shot and killed him in front of a nearby sports store.

The gunman later killed two men at a residence. He then commandeered a vehicle from a woman and her child before he killed himself when he was confronted by a sheriff's deputy, Youngblood said.

Authorities were working to determine "why this started and why so many players were involved and the connection because obviously these are not random shootings," Youngblood said.

Youngblood did not disclose the identities of the victims.

The woman whose vehicle was taken, and her child, were unharmed, he said.

Police recovered a pistol at the scene, Youngblood said.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.