Terrorists inside Afghanistan pose a grave threat to Pakistan’s security: FO