Alanna McCargo’s appointment marks a new era for the agency, which had been without permanent leadership since 2017.