Both sides claim to have inflicted heavy losses after the Afghan Taliban launched attacks along the border.