The Pakistani army says rockets fired by militants from across the Afghan border have hit a military post, killing four soldiers and wounding four others.

An army statement says troops at the post in Akhandwala Pass in the Khyber tribal region killed the militants behind the attack Sunday. The military did not say which militant group launched the attack.

The Pakistani army is currently engaged in a massive operation to drive out militants in Khyber and other tribal regions.

Local and foreign militants have used safe havens in tribal regions for years to carry out attacks on both sides of the border, frequently attacking army positions in the mountainous terrain.