Pulse-shape discrimination between electron and nuclear recoils in a NaI(Tl) crystal