Gunmen ambushed a senior police commander as he headed to work in Pakistan's northwestern city of Peshawar on Thursday, seriously wounding him and killing his bodyguard and driver, officials said.

The attack came hours after suicide gunmen and car bombers targeted an office of Pakistan's premier intelligence agency in the southern town of Sukkur, sparking a shootout that left seven people dead.

"The deputy commander of Frontier Reserve Police Gul Wali Khan was going to his office from home when four people on two motorbikes lay in wait on both sides of the road," police official Imran Shahid said.

"They opened fire on his vehicle. His bodyguard and his driver have been killed," Shahid told AFP.

A spokesman for the main government-run Lady Reading Hospital in Peshawar said the commander was in a critical condition.

"We have received two dead bodies and the situation of the deputy commander is critical. He has been hit by three bullets and he is in surgery," the spokesman, Jamil Shah, told AFP.

There was no immediate claim of responsibility, but Pakistani security forces are on the frontline of a domestic Taliban-led insurgency concentrated in the northwest, along the Afghan border.