Method for detection of a target in an image acquired from a vehicle flying over a celestial body