Pakistan has deploying thousands of security personnel and banned public gatherings