PESHAWAR, Pakistan — Six militants were killed in an American drone strike in northwestern Pakistan on Saturday, officials said, the first since Taliban fighters killed 148 people, mostly schoolchildren, in a brutal attack on a military-run public school here.

A Pakistani security official said two missiles struck a compound in Datta Khel, just three miles from the Afghan border and about 37 miles west of the headquarters of the North Waziristan tribal region.

“Six militants were killed, including three Uzbeks, one Arab and two locals,” said the security official, who spoke on the condition of anonymity because he was not authorized to speak to the news media.

One hundred and thirty-two children were killed in the school massacre, some lined up and shot in the head, others gunned down as they cowered under desks. The attack has shocked and convulsed the nation, causing a wave of public anger and prompting the government to declare an all-out war against militants.