A riot at an NSW juvenile justice centre in which inmates used makeshift weapons to “target sex offenders” has come to a peaceful end after almost 24 hours as police warned the rioters would face court. 

The “sudden and unprovoked” riot broke out at the Frank Baxter Juvenile Justice Centre at Kariong on NSW’s Central Coast at about 8.30pm on Sunday, NSW Police said. 

Officers were called to the location following reports that a number of detainees had assaulted other juvenile residents. 

Riot Police are seen during a riot at the Frank Baxter Juvenile Justice Centre.

AAP

The 21 hour-long riot came to an end at 5.30pm on Monday following “highly successful negotiation”, police said.

Twenty males, aged between 16 and 20, have been arrested. 

Seven detainees were injured during the incident, with one 18-year-old receiving treatment for stab wounds and facial injuries at Gosford Hospital. He remains in intensive care in a critical condition. 

Throughout Monday nine detainees surrendered peacefully to police until officers from the Tactical Operations Unit and the Public Order and Riot Squad gained access to the roof of the facility – where the remaining rioters had gathered – and arrested the remaining detainees peacefully.

In a press conference on Monday evening, a police spokesman said anybody involved with the riot would be charged with the offence of rioting, which carries a 15-year sentence.

Riot police lead a detainee away in handcuffs during a riot at the Frank Baxter Juvenile Justice Centre.

AAP

“It is important, ladies and gentlemen, that the detainees understand that there will be consequences for their actions,” he said.

NSW Minister for Families and Communities Gareth Ward said he had called for an urgent independent review into the incident to “get to the bottom of what happened”. The review will be conducted by former Police Assistant Commissioner Lee Shearer.

“The incident at Frank Baxter Youth Justice Centre is unacceptable and we are treating it very seriously. I commend NSW Police for resolving the situation,” he said.

“Our priority is the safety and wellbeing of staff and detainees involved the incident.”

The union which represents prison guards said the offenders stole keys from an officer to obtain garden tools including a hedge trimmer and shovels from a maintenance shed.

Public Service Association general secretary Stewart Little described the riot as “nothing short of horrific”.