Former national security adviser would have cautioned against Prince Harry's Afghanistan revelation