Militants killed seven Pakistani soldiers in two attacks in the country’s mineral-rich southwestern province of Balochistan, the military said on Tuesday.