Robert A. McDonald, the secretary of the Veterans Affairs Department, apologized on Monday for falsely claiming last month that he had served in the Special Forces.