A magnitude 6.5 earthquake that hit Indonesia’s eastern province of Maluku has killed at least 20 people, damaged buildings and sent people fleeing to the hills, officials and witnesses said.