A powerful earthquake hit the Indonesian island of Sulawesi early on Friday, killing at least 35 people, injuring hundreds and severely damaging buildings.