Militants abducted 20 foreigners working at a Libyan hospital, then freed them -- under the condition, if they want to live, they stay put, a official said.