OTTAWA -- Canada has joined several European countries in urging its citizens to immediately leave the eastern Libyan city of Benghazi.

In an advisory posted Thursday on its website, Foreign Affairs Canada also warned against non-essential travel to the country because of the fragile political situation there.

It says there is a "heightened risk of terrorism throughout Libya, including in Benghazi."

Earlier, Britain, Germany and the Netherlands warned of an imminent threat against westerners, days after a deadly hostage crisis in neighbouring Algeria.

European officials said schools were among the potential targets.

In its advisory, Foreign Affairs warns "terrorist attacks could occur at any time and could target areas frequented by expatriates and foreign travellers."