Dynamical decoupling of random telegraph noise in a two-qubit gate