McCormick County, SC (WLTX) - South Carolina officials say a dorm has been secured at a maximum security prison and all inmates have been contained after several of them got on top of the roof the facility Wednesday.

McCormick County Emergency Services posted on its Facebook page Wednesday afternoon that the inmates were attempting to get out of McCormick Correctional Facility. They later said that no inmates were able to escape.

Later, the Department of Corrections confirmed that 38 inmates were in the dorm, and that some of them were able to make it to the roof of the dorm. However, the corrections department said it didn't consider it a serious escape attempt, since the prisoners would have had to get through several fences and razor wire.

The agency said the situation was contained to one housing unit at the site, and called it an "isolated incident" that never affected the entire prison. All of their staff were reported to be safe and accounted for.

Jeff Taillon, a spokesman with the Department of Corrections, released a statement: "The dorm has been secured and one inmate is being treated at the scene for non life threatening injuries."

There was also a report of a small fire was also set inside the dormitory according to deputies, but corrections officials later said that was false.

McCormick is a Level 3 facility, housing "violent offenders with longer sentences, and inmates who exhibit behavioral problems," according to the prisons department's website.

Housing at all Level 3 facilities consists of single and double cells, and all perimeters are double-fenced with extensive electronic surveillance.

This is a developing story. More information will be provided later.