Clashes erupted when militants attacked troops in Barlas area of Aurakzai Agency.
One soldier was injured in the fighting, officials of the local political administration told the media.
The injured soldier was taken to a nearby hospital.
Security forces used artillery to repulse the attack by the militants.
Troops seized heavy weapons during a search operation following the clashes, officials said.