The Pakistani border security forces targeted militant positions with heavy artillery after a border post came under attack from across the Afghan border late on Monday.
Security officials said at least three hideouts of the suspected militants were damaged in the retaliatory fire from the border security guards.
They said some militants were also killed in the retaliatory fire.
Militants targeted a border post from Rainai area of Afghanistan situated across the Kabul River near the Pakistani border town of Loe Shalman. Nobody was hurt on the Pakistani side.