A massive 9.3 magnitude earthquake struck off the west coast of Sumatra in 2004 , triggering the tsunami that inundated coastal communities in Indonesia and other countries in the Indian Ocean rim killing about 220,000 people , most of them in Aceh .