ATASCADERO, Calif. (AP) — San Luis Obispo County sheriff’s deputies have shot and killed a driver they say pulled a gun after they stopped his car on a freeway shoulder.

Thirty-four-year-old Josue Gallardo was declared dead Tuesday shortly after midnight in Atascadero.

READ MORE: 'Non-Specific Threat' Shuts Down San Francisco State Campus

The Sheriff’s Office says Gallardo, a transient from the Paso Robles area, had a warrant for his arrest over a domestic violence incident that occurred in June.

READ MORE: Deadly Rip Tide Warning Issued For Northern California Beaches

The Sheriff’s Office says deputies spotted Gallardo’s car on southbound Interstate 101 and pulled it over.

But authorities say as two deputies approached the car, Gallardo pulled a gun. The deputies opened fire and retreated.

MORE NEWS: Simone Biles Opens Up About Olympic Struggles Before Taking Stage In San Francisco

© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.