A 6.6-magnitude earthquake hit the northern part of Indonesia's Sumatra island on Tuesday, the US Geological Survey said.