SOLANO COUNTY, Calif. (KTXL) — A person died after firing a gun at an officer who returned fire on Sunday morning, according to the Solano County Sheriff’s Office.

According to the sheriff’s office, just before 3 a.m., a deputy from the sheriff’s office, along with help from officers at the Fairfield Police Department, arrived in the area of Central Way and Pittman Road in Fairfield after receiving reports of an armed robbery.

The sheriff’s office said that when the deputy arrived on the scene he “deployed his K9 to apprehend the suspect.”

According to the sheriff’s department, the suspect then fired a gun, and the deputy returned fire. The suspect died from injuries related to the shooting.