Current and former military officers are warning that countries are likely to exploit a security hole in artificial intelligence chatbots.