A 5.6 magnitude quake south-east of Jakarta has left at least 162 people dead, many of whom were children.