At least 47 people have been killed after a magnitude 7.7 earthquake struck Indonesia early on Saturday, the nation's disaster mitigation agency has said.