Imposter used artificial intelligence to pose as the secretary of state and contacted foreign ministers