The chats had been set up to discuss sensitive security matters. But a group of employees used them for discussions that contained sexual themes, intelligence officials said this week.