In the past few weeks, flooding in Kenya and Tanzania killed hundreds after heavy rain during the region’s monsoon season, officials said.