The Tehrik-e-Taliban Pakistan took responsibility for the blast, which occurred as people were leaving the mosque after Friday prayers in Kalaya, Orakzai Agency, The News International reported.
The explosion also was near the offices of the city's political administration and security forces.
Some sources told the Pakistani newspaper the explosives were detonated in the grocery, while others said the bomb was in a vehicle was parked in the area and was triggered with a remote-controlled device.
Gal Gadot cast as Wonder Woman for 'Batman vs. Superman'
Jordana Brewster on Paul Walker: 'He was an enormous presence in my life'