WASHINGTON — Within an hour after the first shots were fired in the attempted assassination of former President Donald Trump, President Joe Biden had been briefed on what had unfolded, he was preparing a written statement condemning it and planning an address the nation, and he had tried to call his rival in the election.