Photohadronic origin of γ-ray BL Lac emission: implications for IceCube neutrinos