UN Secretary General Ban Ki-moon has called on the Egyptian interim government to release the ousted president Mohamed Morsi.