Method of sealing subterranean zone