Soldier 'infected two men with HIV'