Former FBI Director James Comey has asked a federal judge to dismiss the Justice Department's indictment against him.