The shaking could be felt in high buildings in the capital, Jakarta, several hundred miles, and in neighbouring Singapore and Malaysia. A tsunami alert was sent out to countries along the Indian Ocean, prompting many to flee to higher ground.