Afghan officials say a NATO airstrike has killed 13 Taleban militants after the insurgents attacked a government building near the Pakistan border .