Under terms of his release , the former Israeli nuclear technician was barred from contacting foreigners or leaving the country .