Foreign Secretary William Hague says that five expelled Libyan diplomats posed a threat to the UK's national security.