An El Mirage police officer shot and killed a man after a confrontation on Sunday night, according to the Maricopa County Sheriff's Office.

MCSO Sgt. Calbert Gillett said El Mirage PD and MCSO responded to reports of shots fired around 10 p.m. near 113th and Tennessee avenues in Youngtown.

The suspect, identified as 25-year-old Erick Perez, was shot after he advanced toward an El Mirage officer with a handgun and two knives, MCSO said. He died at the scene.

Police said they set up a perimeter outside an apartment complex where they believe Perez was shooting a gun.

No deputies or officers were hurt.

According to MCSO, Perez has served time in the Arizona Department of Corrections for arson, burglary, leaving the scene of an accident and a parole violation.

MCSO is investigating the incident. Police have not yet identified the officer involved.