The United Nations has condemned the killing of a U.N. security officer in southern Somalia .