Women and children were among the fatalities in the attacks in the Kurram tribal district on Thursday, police said on Friday.
Sectarian violence has escalated since July in Kurram, a region bordering Afghanistan, between Shia and Sunni tribes over land disputes.
Gunmen opened fire on two separate convoys of Shia pilgrims travelling with police escorts in Kurram. No group has claimed responsibility for the attacks.
Javedullah Mehsud, the deputy commissioner of Kurram, said the attacks took place when the convoys were on their way from the district headquarters of Parachinar to Peshawar.
Mehsud told Al Jazeera on Friday that all the bodies had been recovered and burials would be conducted later in the day.
MNA/