Israel says it is seriously considering a plan to end the conflict in the Gaza Strip after 42 Palestinians were killed at a UN-run school.