Such attacks have killed senior members of al-Qaida and the Taliban , but have sparked criticism from Pakistan 's government .