Denmark 's foreign ministry is urging Danish nationals to leave Lebanon after protesters , angered over a political cartoon of the prophet Mohammed , burned the Danish consulate .