A holidaying Israeli soldier was forced to flee Brazil after a judge ordered an investigation into his wartime conduct.