Explosion in Pakistan mosque kills dozens