The agency lost 12 percent of its foreign-affairs specialists in the first eight months of the Trump administration.