I believe the answer is: stay in the presence of the soldier until the order has been obeyed
According to millgram experience, an individual will much more likely to do something if it's dictated in the presence of someone that he/she recognized as an authority. In the scenario above, we could make the assumption that the presence of the officer would most likely make the soldier feel pressured to follow the order.