Recent heavy rains and lightning strikes have caused significant deaths and damage in Pakistan and Afghanistan, prompting states of emergency in affected regions.