A clash between Pakistani security forces and the Afghan Taliban near the Kurram district border led to the deaths of eight Afghan soldiers, including two key commanders.