What is the meaning of Stay-behind?

One who remains when expected to leave or after others have left.

An agent who lives in a foreign country, and can be activated in certain circumstances.

Source: wiktionary.org