Buildings on islands off the western coast of Indonesia's Sumatra island buckled as the 8.7 magnitude undersea temblor struck shortly before 11:15 pm local time, crushing those in the rubble.