A 5.3-magnitude earthquake has struck western Indonesia, killing one villager, injuring two others and damaging dozens of houses.