Fifty people, mostly students, were injured while parts of Hindu temples crumbled during a magnitude 6 earthquake and an aftershock in Bali, Indonesia on Thursday.

A dozen students and three teachers were hit by falling ceiling and roof tiles inside a high school. Three are in critical condition while the others are being treated for cuts, broken bones, head wounds and bruises, a Bali hospital spokesman said, according to News.com.au.

The Sangla hospital received 44 students for treatment, Dr. Ken Wirasandhi said according to AFP.

Stones from ancient Hindu temples were seen tumbling to the ground and their walls crumbled from the force of the earthquake, according to the Herald Sun.

In Kuta's beach strip, hotel staff and guests panicked and dashed out onto Sunset Road. Resorts and hotels in the luxury southern beach area of Nusa Dua were also evacuated after the earthquake.

The Department of Foreign Affairs and Trade and the Australian Consulate-General in Bali has yet to receive any report of injured nationals.

The 14-year-old Newcastle boy detained at the police headquarters in Denpasar for illegal drug possession and his mother were confirmed safe.

Mohammad Rifan, the boy's lawyer, and Australian Consul-General in Bali, Brett Farmer, who visited the mother and son after the earthquake, said they were fine, according to AAP.

The boy and his mother stayed together indoor during the one minute earthquake and did not rush out of the headquarters as other staff and police did. The boy was not inside a cell in the drug squad office while other prisoners remained locked up when the shaking started.

In other parts of Bali, locals and tourists fled malls, restaurants and supermarkets and ran onto streets. A witness said part of the wall and roof of the Carrefour supermarket collapsed and its roof tiles smashed into the parking lot but no shoppers were injured.