Electrical switching of an antiferromagnet