The Pakistani military's latest ground and aerial onslaught in the troubled northwest killed at least 34 Islamist militants Saturday while five of its troops also died during clashes, security officials said.