In a Saturday, July 4, 2015 photo, prison inmates stand in the yard at Arizona State Prison-Kingman in Golden Valley, Ariz. State officials are relocating over 1,000 prisons from the privately run prison located about 15 miles west of Kingman because of damage from disturbances last week and over the weekend.

PHOENIX — Days of unrest at a privately run prison in Arizona became a nightmare scenario as inmates rioted, trashed housing units and injured guards, prompting the governor to order an investigation Monday into the problem at the facility.

Gov. Doug Ducey told state prisons Director Charles Ryan to initiate the probe at Arizona State Prison-Kingman, which has a history of security issues.

"It is critical that we understand how these incidents occurred and how we prevent them in the future," Ducey said in a letter to Ryan. "The public also needs to know the facts and have assurances that prisons in our state — both state-run and privately run — are under control."

The unrest began July 1 in a minimum security unit when private corrections officers tried to stop an inmate-on-inmate assault.

A full-blown riot broke out the next day in the medium security unit after an inmate became aggressive with a private correctional officer, according to Issa Arnita, a spokesman for Centerville, Utah-based Management & Training Corp., which operates the prison.

The resulting riot left some housing units so badly damaged that prisoners had to be moved to other facilities. Nine corrections officers suffered minor injuries in the first two days of unrest.

On Saturday, more damage occurred when medium security inmates refused to follow orders and then went on a rampage. Four inmates were injured when state and private officers intervened.

More than 1,000 of the 2,500 prisoners at the prison have been moved to other facilities, including another Management & Training Corp. facility in Texas, a prison run by another contractor north of Tucson, and a facility run by Pinal County jail, corrections spokesman Andrew Wilder said.

A Department of Corrections assessment team was onsite and will be leading a thorough investigation into the incidents, Wilder said.

In 2010, three inmates escaped from the prison after a woman in a getaway car threw cutting tools over a fence. The inmates went on a violent crime spree that included killing an Oklahoma couple during a camping trip in New Mexico.

The inmates were caught, tried and received new prison sentences.

Management and Training Corp. has continued to operate the prison despite a scathing report from Ryan that faulted the company for allowing security flaws and poor operational practices.

In January, an inmate was sexually assaulted and beaten by other prisoners and died at a hospital three days later, according to a legal claim filed by his family. The legal action says emergency responders weren't notified for nearly two hours.

The inmate, Neil Early, was serving a five-year sentence for theft and possession of drug paraphernalia after becoming addicted to heroin and stealing video games. His father told The Associated Press that the prison was rife with violence and drugs.

Prison officials and the private prison operator have not cited a cause for the problems last week in the medium-security unit of the prison. They also haven't provided a damage estimate, although Wilder said windows were broken while security cameras and plumbing fixtures were destroyed.

MTC and its insurance companies will pay for repairs and compensate the state for response costs, Arnita said.

Arizona has about 43,000 inmates in prisons, including 7,500 in private facilities. The practice of using private prisons has been criticized by groups that contend operators cut costs at the expense of prisoners in order to improve profits.

Mohave County Supervisor Buster Johnson, who worked to get a prison located in the mainly rural Arizona county, was particularly concerned about Friday's riot, where prisoners rampaged out of control for hours before corrections and private prison staff brought them under control.

"I'm worried about the possibility of the escape - especially when you have that many people rioting," Johnson said. "We have a limited amount of men to control that many inmates without some kind of deadly force being used."

State police, Mohave County deputies and Kingman police provided perimeter security during the incidents. No security breaches were reported, Wilder said.