A Pakistani police officer says a bomb targeting an aide of the country's prime minister has killed five people in a northern area.

Deputy Inspector General police Abdullah Khan says the bomb exploded Sunday in the Shangla area near the convoy of Amir Muqam, a cabinet aide and former parliamentarian.

Khan says Muqam escaped unhurt, but the blast killed two police and his three private guards.

Shangla is part of the scenic Swat valley that local Taliban militants captured before an army offensive drove them out in 2009.

Swat Taliban chief Mullah Fazlullah escaped to neighboring Afghanistan. He was selected to lead the Pakistani Taliban after a suspected U.S. missile strike killed his predecessor in late 2013.