The EU said the bloc was preparing for the possible evacuation of European citizens from Libya.