Kenya says it is pulling out its troops deployed to South Sudan as part of the U.N. peacekeeping mission after U.N. Secretary-General Ban Ki-moon fired the force's Kenyan commander.

Ban made the decision after an independent investigation sharply criticized peacekeepers' response to deadly attacks in July on a U.N. compound housing 27,000 displaced people in South Sudan's capital.

Kenyan Lt. Gen. Johnson Mogoa Kimani Ondieki was fired shortly after the investigators' report was released Tuesday.

A statement from Kenya's foreign ministry on Wednesday said the process of firing Ondieki lacked transparency, and it blamed the shortcomings of the peacekeeping force on the U.N.'s department of peacekeeping operations.