Israel agrees to pauses in Gaza attacks, US says