A suspected gunman is dead and a woman is in custody after a shootout with authorities in California.

The San Luis Obispo Sheriff's Office said it received reports around 11:15 a.m. of shots fired in the parking lot of a Vons supermarket in Nipomo, about 165 miles north of Los Angeles.

“He was firing indiscriminately, so he was firing at moving vehicles, he was shooting all over the area. We aren’t exactly sure why at this time,” said sheriff's spokesperson Tony Cipolla, according to The San Luis Obispo Tribune.

Deputies and the California Highway Patrol engaged in a shootout with the suspected gunman, who died, the sheriff's office said in a tweet. It was not immediately clear how the shooter died.

Cipolla did not return calls and messages from Fox News.

A woman suspected of having been with the deceased suspect was found near a packing plant, according to the Tribune.

CLICK HERE TO GET THE FOX NEWS APP

It was not clear what led to either shooting or if anyone else was hurt.