It was not immediately clear what triggered the gunfire or whether anyone was injured during the tense standoff inside the Senate complex.