Pakistani security forces on Wednesday repulsed a gun and bomb attack by militants on a complex outside the strategic port of Gwadar, which killed all eight militants and two soldiers, officials said.China has invested heavily in the mineral-rich southwestern province of Balochistan, including developing Gwadar, despite a decades-long separatist insurgency.