The heaviest fighting in four years between Israel and militants in the Gaza Strip has brought life to a standstill on both sides of the border.