At least 50 people have been killed after a dam burst on the outskirts of the Indonesian capital Jakarta.