A powerful earthquake struck the Indonesian island of Sulawesi just after midnight Friday, damaging homes and buildings, triggering landslides and killing at least 34 people.