The deaths were scattered across a swath of India’s most populous state, Uttar Pradesh, where many homes were destroyed.