Pakistan says up to 40 militants were killed during Wednesday's fighting with security forces in the North Waziristan tribal region, not 16 as reported earlier.

Troops backed by helicopter gunships attacked militant hideouts near the Afghan border after a rebel rocket attack killed four soldiers.

A military spokesman, Major General Shaukat Sultan, said some 19 pro-Taleban militants were captured during the operation.

Pakistan's President Pervez Musharraf has warned foreign militants using the Waziristan region as a hideout to leave or be killed. He has also promised extra development funds for the region if local tribes stop harboring foreign militants.

Last month, Pakistani security forces killed about 200 militants and their local supporters in North Waziristan in a campaign to rid the area of insurgents.

Some information for this report was provided by AFP and Reuters.