WASHINGTON — Attorney General William P. Barr said in an interview published on Friday that the death of Jeffrey Epstein, the financier accused of sex trafficking, in a secure federal prison resulted from “a perfect storm of screw-ups,” rather than any nefarious act.

Mr. Barr’s statement refuted suggestions from members of Mr. Epstein’s family that he may have been murdered. His remarks came the same week that two prison guards were criminally charged, accused in an indictment of failing to check on Mr. Epstein every half-hour as they were required to and then lying about it on prison logs.

“I can understand people who immediately — whose minds went to sort of the worst-case scenario, because it was a perfect storm of screw-ups,” Mr. Barr said in an interview with The Associated Press as he flew to Montana on Thursday night.

Mr. Epstein’s death in August at a federal detention center in Manhattan set off a rash of unfounded conspiracy theories on social media that were picked up and repeated by high-profile figures, including Mayor Bill de Blasio and former Mayor Rudolph W. Giuliani. No matter their ideology, the refrain of the theories was the same: Something did not add up.