General Mark Milley, the chairman of the joint chiefs of staff, said he “should not have been there.”