Pakistan, terrorism and nuclear deterrence