An individual who, as a result of performing active duty (including active duty for training), is unable to perform the service for which the individual is obligated under
section 7654 of this title shall be permitted to perform that service upon completion of the active duty service (or active duty for training). The Secretary may, by regulation, waive the requirement for the performance of the service for which the individual is obligated under
section 7654 of this title in any case in which the Secretary determines that the individual is unable to perform the service for reasons beyond the control of the individual or in any case in which the waiver would be in the best interest of the individual and the United States.