Twitter messages to Russian cybersecurity firm helped NSA leak probe