The shooting occurred at the shrine of Ghazi Shah Baba in Mardan district, 50 km east of provincial capital Peshawar, yesterday. The bodies were found today, police officials said.
No group claimed responsibility for the attack though the banned Pakistani Taliban has carried out several attacks on Sufi shrines, which it has described as "un-Islamic".
On Tuesday, six bodies were found with their throats slit near another Sufi shrine in Karachi. A note found near the bodies warned people against visiting such shrines. These killings were blamed on the Taliban by police.