Danish Foreign Ministry

The Danish government on Friday advised its nationals in Tunisia to leave the country saying there was a "high risk" of another terror attack.

"If you are in Tunisia and do not have essential reasons for being there, you are advised to leave," the Danish Foreign Ministry said on its website.

"There is a high risk of terrorist attacks against Western targets in Tunisia and at tourist attractions, public buildings, near security agencies and in places where large crowds are gathered," it said.

Denmark advised against all travel to the areas bordering Algeria and Libya.

Britain on Thursday also urged its nationals to leave the country, warning that local authorities could not provide "adequate protection" after last month's beach massacre.

On June 26, a gunman killed 38 tourists, mostly Britons, in the coastal resort of Sousse. Following that, Danish tour operators immediately stopped flying to the popular destination for Europeans.