FOLSOM (CBS13) – An inmate at California State Prison, Sacramento has died after being shot by a correctional officer.

The incident happened Thursday morning. California Department of Corrections and Rehabilitation officials say an unnamed inmate started attacking inmate Eric Rodriguez in the prison’s main yard.

READ MORE: Hamilton Fans Evacuated After Fire Alarm Goes Off In Sacramento Convention Center

Guards say Rodriguez was stabbed several times with an inmate-manufactured weapon.

READ MORE: Missing Marysville Teen Carmen Miller May Be Victim Of Sex Trafficking, Police Say

Somehow, Rodriguez was able to wrestle the weapon away and started stabbing the other inmate. A correctional officer then fired a lethal round at Rodriguez, hitting him.

Rodriguez was soon pronounced dead. The inmate who attacked him has been taken to a hospital outside the prison to be treated for multiple stab wounds.

MORE NEWS: Proposed Campground Expansion At Auburn State Recreation Area Draws Concern Over Wildfire Risk

Officials say Rodriguez had been at CSP-Sacramento since April to serve a four-year assault with force sentence.