Two troops, cut off for months, were brought back after a dramatic operation under constant threat.