The 7.7 magnitude quake sent shockwaves so powerful that buildings in neighbouring Thailand were damaged or destroyed.