A powerful earthquake jolted the Indonesian resort island of Bali on Thursday, injuring dozens of people and triggering panic as tourists fled violently shaking buildings.