The Taliban government has confirmed that it attacked Pakistani troops in multiple mountainous locations on the northern border.