Nearly 50 people died of thirst after a truck carrying them from Mali to Niger broke down in the Sahara desert, local authorities said.