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: Crash Investigation Has El Camino Avenue Overpass Closed; Business 80 Open

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: Old Peach Tree Mall Building In Linda Demolished After History Of Flood And Fire

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: Bringing Hollywood To Auburn, Local Company Creates Film Hub In Placer County

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