A deluge of rain triggered floods and landslides, sweeping people away and flooding and destroying homes, officials said.