The Canadian government on Monday night said that its digital networks had been impacted by “malicious cyber threat actors” that had appeared to be causing problems using artificial intelligence systems.