A powerful magnitude 7.7 earthquake strikes off Indonesia's coast, killing at least 40 people and causing widespread panic.