Gamma-Ray Absorption by the Cosmic Lyman Continuum from Star-forming Galaxies