Hawkish national security figure has emerged as critic of President Trump after serving during his first term in office.