FRESNO COUNTY, Calif. (KSEE/KGPE) – A man has died after he opened fire on deputies following a traffic stop on Wednesday afternoon, according to the Fresno County Sheriff’s Office.

The Sheriff’s Office says the incident happened around 3:30 p.m. in the area of Cedar and North avenues.

Detectives with the sheriff’s Ag Task Force were on a nearby property investigating the theft of farm equipment when they reportedly spotted a man driving away from the area.

Deputies say they tried to pull the man over, but he refused to stop.

Photo of the scene near Cedar and North avenues.

About a minute later, the man reportedly crashed his car, rolling it over onto its roof.

Following the crash, authorities say the man immediately started firing shots at the deputies behind him.

In order to stay a safe distance away from the car, deputies used a drone to check on the man and saw he appeared to be injured and wasn’t moving.

After deciding it was safe to approach, deputies found the man dead inside of the car. The Sheriff’s Office says it’s too early to determine how he died.

An investigation is currently underway to determine if any deputies fired their guns during the incident.