A spokesman for the Pakistani Taliban has claimed responsibility for an attack Saturday on a naval dockyard in Karachi that saw two militants and a sailor killed.

Taliban spokesman Shahidullah Shahid said some naval officials helped them to carry out the attack. He said they launched the assault as revenge for an ongoing army operation in the North Waziristan tribal region.

Navy officials only acknowledged the attack Monday night, but said nothing about whether naval officials assisted the militants. The navy said seven of the sailors were also wounded in the attack.

In 2011, Taliban had attacked another naval base in Karachi, an assault that lasted for 18 hours and killed 10 people. That assault deeply embarrassed Pakistan's influential armed forces.