They used a technique called transcranial direct current stimulation, or tDCS. If you pass a weak electrical current through part of the brain, it temporarily and safely disrupts neural activity.
WSJ: Mind & Matter: Alison Gopnik on Beating the Brain's Curbs on Innovation