Militants dressed in uniforms and armed with guns and rocket launchers stormed a Pakistani air force base on Thursday, sparking heavy clashes that left nine people dead, officials said.

One security official was killed and a plane damaged in the pre-dawn assault at PAF Base Minhas.

The attack comes amid speculation that Pakistan could launch an operation against militants in the tribal district of North Waziristan, where Washington has long demanded an offensive against Haqqani network.

The Air Force said seven to eight attackers with rocket propelled-grenades and suicide vests attacked the base, home to to the Pakistan Aeronautical Complex that assembles Mirage and JF-17 fighter jets, at 2:00 am (2100 GMT Wednesday).

That gunmen disguised themselves in uniforms and got inside the facility just 60 kilometres (37 miles) northwest of Islamabad will renew questions about security, particularly at a base which has been attacked twice before.

"Other miscreants then fired RPGs from outside the base boundary wall. As a result one PAF aircraft got damaged," the air force said in a statement.

Gunfire, rocket and hand grenade explosions were heard during heavy clashes. One officer told AFP that he saw flames after waking up for his late night meal, eaten during the dawn-to-dusk Muslim fasting month of Ramazan.

"There was an announcement by megaphone for soldiers not to move from the barracks and we were forbidden from going to the area where I saw the fire," he said. Special forces and police were scrambled to the scene.

"Eight terrorists have been killed and one security official martyred," an Air Force spokesman told AFP.

"The attackers were wearing security force uniforms but I can't specify of which force uniform they were wearing," he added.

At least seven of the attackers were wearing suicide vests.

The military initially said that two security personnel were killed but no explanation was given for revising down the number.

The base commander, who led the counter-attack, was wounded and forces were searching the base to ensure no other gunmen remained, the military said.

There was no immediate claim of responsibility but the Pakistani Taliban have targeted a string of military bases since rising up against the government in July 2007.

In May 2011, it took 17 hours to quell an attack on an air base in Karachi claimed by the Taliban.

Thursday's attack was the second in weeks to see troops die near the relatively secure capital. Gunmen on July 9 killed seven security personnel who had camped by a river less than 160 kilometres (100 miles) southeast of Islamabad.

Despite a relative lull in high-profile attacks, Pakistan has been on alert for violence to coincide with its independence day on Tuesday this week and the Muslim festival of Eid, which is expected to begin at the weekend.

The base in Kamra was previously targeted on October 23, 2009 when a suicide bomber killed six civilians and two Pakistan Air Force personnel at a checkpoint. On December 10, 2007, a suicide car bomber struck a school bus, wounding at least five children of base employees.