Barak: Israel will act in Gaza when time and place are right