Deadly blast near Pakistan mosque