To use the distract option you first need to wear an enemy uniform, then in your character menu at the right click the right mouse button to see an icon with an enemy soldier and the spy. Press on this icon with the left mouse button and then click the soldier that you want to distract.