UN Secretary General Ban Ki Moon urged Israel to avoid civilian casualties and to show restraint in its ground operation in Gaza.