PORTERVILLE, Calif. (AP) — A man fatally shot a central California sheriff’s deputy Thursday morning as he was being served an eviction notice, prompting a standoff that ended with authorities fatally running him over with a vehicle after he fled the home.

Tulare County deputies were serving the notice to a 60-year-old man in Porterville when he opened fire on them, the sheriff’s department said. Porterville is about 150 miles northeast of Los Angeles in the state’s Central Valley.

The man barricaded himself inside the home with a rifle for several hours. At one point, authorities deployed gas into the home as the man continued to fire at law enforcement. The standoff ended around 6 p.m. when the man left the home and moved through the yards of nearby homes, Sheriff Mike Boudreaux said during an evening news conference.

Boudreaux said a Kern County SWAT team drove an armored car into the yard where the man was lying on the ground and he started firing at them. The team drove the car over the man, killing him.

Boudreaux explained that the man had failed to pay rent for 35 days and had anticipated law enforcement’s arrival. He allegedly “laid in wait” and immediately shot at the officers.

The man’s family was in contact with him and urged him to come out peacefully, Boudreaux continued.

The deputy who was killed was part of a group of officers that arrived to help after the shooting began. Bystander video showed several armed deputies crouching on the road in a residential neighborhood when gunfire erupted.

Boudreaux later identified the slain deputy as Detective Randy Hoppert, a U.S. Navy veteran who joined the sheriff’s department in 2020. He described the incident as “senseless.”

Residents were evacuated as SWAT teams and law enforcement handled the situation, urging the public to shelter in place while nearby schools went into lockdown.

Local resident Miguel Ibarra, whose 82-year-old mother lives across the street from the suspect, expressed his disbelief over such an occurrence in their typically quiet neighborhood, crediting police for keeping the community informed during the tense standoff.