An invasion of locusts has spread across Pakistan, officials said, causing damage to crops and orchards and posing a threat to food security in an impoverished Islamic nation already struggling to tackle a virus pandemic that has caused more than 1,300 deaths.