Chiral-induced switching of antiferromagnet spins in a confined nanowire