The UN's Middle East envoy has condemned the deaths of civilians following Israeli air strikes in Gaza overnight, and has called on both sides to exercise restraint.