Three people were killed Tuesday when a 6.6-magnitude earthquake hit Indonesia's Sumatra island, officials said.