Twelve people were killed in a 6.4 magnitude earthquake that hit the Indonesian island of Lombok.