ISLAMABAD, Pakistan — Two missiles fired from American drone aircraft killed more than 30 people, including Qaeda and Taliban fighters, near the Pakistani border with Afghanistan on Saturday, according to a Pakistani intelligence official and residents of the area.

The missiles struck three compounds, including one where the leader of the Pakistani Taliban, Baitullah Mehsud, and foreign and local fighters loyal to him sometimes gather, the official and residents said.

Mr. Mehsud, one of the most feared leaders in Pakistan’s lawless tribal areas, was not among those killed, according to the official, who spoke on condition of anonymity because he was not authorized to speak to the press.

Mr. Mehsud, a Pakistani, has fought the government openly in the past, and government and intelligence officials say forces loyal to him continue to attack Pakistani troops in the Swat Valley and the Bajaur and Mohmand tribal areas. The previous government, led by Pervez Musharraf, accused Mr. Mehsud in the killing of Benazir Bhutto, a former Pakistani prime minister.