WASHINGTON — The day after the 2012 attack on the U.S. diplomatic outpost in Benghazi, a longtime confidant wrote then-Secretary of State Hillary Rodham Clinton that a Libyan security official thought the attack was inspired by a video mocking Islam’s prophet Muhammad.