The online education company said the combination of artificial intelligence and diminished traffic from search engines like Google has hurt the business.