At least five people have died when a magnitude 7.7 struck off the coast of Indonesia early on Saturday. A tsunami warning has now been lifted.