A police force in Wales experienced a cyberattack.