Firing ranges became driving ranges as soldiers in Afghanistan swapped their weapons for wedges to mark a morale-boosting visit by the Scottish golfer Colin Montgomerie.