A CIA analyst at the agency since 2006 has quit his job, citing an inability to serve President Trump’s administration.