More than 250 militants have crossed from Afghanistan, attacking a village in Pakistan's northwest tribal region with automatic rifles and rocket-propelled grenades.
Pakistani officials and local residents say the militants killed at least five civilians, including two women, in Thursday's cross-border attack in Bajaur. Three other women were wounded.
Pakistani security forces and members of a local tribal militia retaliated, sparking fighting that lasted several hours. Officials say militants also kidnapped some local tribesmen.
Thursday's cross-border attack was the second this month. Militants from Afghanistan swarmed into Pakistan's Upper Dir tribal district on June 1, sparking at least two days of fighting with security forces. At least 27 troops and some 35 militants were killed.
The Pakistani Taliban claimed responsibility for the Upper Dir attack.
Pakistan has complained that Afghan and NATO forces in Afghanistan are not doing enough to crack down on insurgents on the Afghan side of the border.
Separately, police say gunmen on motorcycles have killed former Olympian boxer Abrar Hussain in Quetta, the capital of the Pakistan's southwestern province of Baluchistan.
Authorities are investigating a motive, but police suspect Thursday's attack was a sectarian killing. Hussain was a member of the minority Shi'ite Muslim community.
The boxer represented Pakistan in the 1984, 1988 and 1992 Olympics and won gold at the 1990 Asian Games.