Delete it. Let them see you delete it. Apologize and be very sincere. Switch off the camera and offer to put it back in the bag.
Now, don’t take another photo that would wrote over that location on the memory. Leave country. Run simple recovery program and enjoy the photos the soldier saw you delete.
This also works for cops, secret service and others.
That, or have it stream to storage that is outside of the country.
Good to know.