At least 46 people have died and about 700 have been injured after a 5.6-magnitude earthquake struck Java island on Monday.