Pakistani officials say a bomb explosion ripped through a mosque in northwest Pakistan killing 11 people as they gathered for Friday prayers .