An earthquake with a 6.2 magnitude hit off the coast of Indonesia's Sumatra island, the country's meteorological agency said on Sunday.

The quake struck 28 km southwest of Mukomuko in Bengkulu, Sumatra at a depth of 55 km, the agency said in a text message, adding that there was no risk of a tsunami.

More than 20 people were killed when an 8.4 magnitude earthquake hit the same area on September 12, damaging or destroying thousands of homes.

Indonesia, situated in a belt of intense seismic activity known as the "Pacific Ring of Fire", was hit by a huge earthquake in December 2004, triggering a devastating tsunami in the Indian Ocean, which killed more than 230,000 people in the region, including 170,000 Indonesians.