A 6.1 magnitude earthquake rocked Bali, Indonesia, Thursday, but the 14-year-old Australian boy detained at the police headquarters in Denpasar, the island's capital, was unhurt.

The quake's epicenter was located 143 kilometres west of the foreign enclave Nusa Dua and 10 kilometres beneath the sea floor. The U.S. Geological Survey measured the temblor at 6.1 magnitude and at a depth of 61 kilometres.

There was no immediate report of casualties but witnesses told the Associated Press that some house roofs collapsed and building walls cracked.

Police pulled the New South Wales boy from his cell when the quake struck at 11:16 a.m. but he remained in the building, according to the Illawara Mercury. Other prisoners remained in their cells, the Herald Sun reported.

Other people in the headquarters and nearby buildings rushed out to the streets for safety when the ground began to shake.
Staff returned to the police headquarters and the buildings when the earthquake subsided.

The boy is facing charges in Denpasar for illegally possessing 3.6 grams of marijuana. He was arrested on Oct. 4. His parents are in the Balinese city for his trial.