Pakistan hanged two convicted militants Friday in the country's first executions in years, while warplanes and ground forces pounded insurgent hideouts in a northwest region bordering Afghanistan — part of a response to the Taliban slaughter of scores of schoolchildren.