Hackers compromised the FBI’s external email system Saturday and used it in a rather counterintuitive way: warning of a potential cyberattack with thousands of spam messages.