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: Tuesday's Show Info (1/25/22)

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

READ MORE: 2 Yuba City Police Officers Injured In Violent Crash

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: Mandated COVID Testing Stretches NorCal Fire Crews Thin

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