Syria agrees to UN probe of purported attacks