The shakeup shows the extent of the political damage caused by the gun-trafficking operation called Fast and Furious, which used tactics that allowed suspected smugglers to buy large numbers of firearms.

Republican lawmakers say the agency was “reckless” in running the program and should have known that at least some of the thousands of weapons would end up in Mexico or be used in crimes in the U.S.