The chief of the Capitol Police told lawmakers Tuesday that the department knew of a “strong potential for violence,” but failed to act.