FOLSOM (AP/CBS13) — Guards have killed an inmate and critically wounded another at  California State Prison Sacramento, also known as "New Folsom Prison."

The state corrections department says it happened Friday afternoon at the prison in the Sacramento area as guards tried to break up a fight in the recreation yard at CSP Sacramento.

READ MORE: Video Released Of Fatal Officer-Involved Shooting Of Tahoe Park Resident Who Shot At Authorities

Authorities say two inmates armed with stabbing weapons attacked a third man.

Guards used pepper-spray grenades and other non-lethal weapons and fired a warning shot from a rifle. But officials say the attack continued and another inmate joined in.

READ MORE: Coroner Identifies Passenger Killed In Wrong-Way DUI Crash On Highway 99

A guard then fired two more rifle shots, striking two inmates. Thirty-eight-year-old Jamie Mardis died. The other inmate is in critical condition.

Two other inmates were treated for minor injuries.  California Department Of Corrections and Rehabilitation officials say two inmate-manufactured weapons were found near the scene of the fight.

MORE NEWS: Looting Suspect Accused Of Dozens Of Thefts Arrested In South Lake Tahoe

Mardis was serving 11 years for robbery and another two years for carrying a deadly weapon in prison.