The man arrested in a shooting incident at the US Capitol had drawn a weapon at a security checkpoint in the building's visitor center, where he was shot by an officer.