US Secretary of State John Kerry on Tuesday warned of the "great risks" that the violence between Israel and the Gaza Strip could spiral out of control.