A man was shot and killed by police in Fresno, California, on Thursday morning after allegedly stabbing two family members and then attacking an officer.

The incident began around 6 a.m. at a residence near Dunn and Thorne avenues. When officers arrived, the suspect emerged from the home covered in blood, initially claiming he was the victim of an assault, according to Fresno Police Chief Mindy Casto.

As an officer began to provide aid, the suspect allegedly attacked, stabbing the officer in the neck. The wounded officer then returned fire, striking the suspect. The suspect was transported to a local hospital where he was pronounced dead.

Investigators stated the suspect had also stabbed his brother and 14-year-old nephew inside the residence before confronting officers. Both family members sustained injuries but are expected to survive.

Chief Casto described the officer's survival as a "true miracle." The officer who was stabbed is receiving medical attention, and his condition was not immediately released. The suspect's identity has not yet been made public.