Immigration officials accused Hamdi only of overstaying his visa after it was revoked without prior notice.