At least 20 people died and hundreds went missing after a dam collapsed, engulfing thousands of homes.