US president says he disagreed with hardline security chief