The United Nations condemned attacks on ships in the port of Benghazi and off the city's coast, emphasizing respect for Libya's sovereignty.