Riazul Islam, Deputy Superintendent of Police, Counter Terrorism Department was going to a mosque along with his son when the militants struck at Charsadda road here, Express Tribune reported.
Islam was killed and his son injured in the indiscriminate firing by the gunmen.
Tehreek-e-Taliban Pakistan claimed responsibility for the attack.
Senior Superintendent of Police Sajjad Khan said Islam was killed in a terrorist attack, the newspaper reported.
Police cordoned off the area and launched a manhunt to nab the accused.