Calibration of a CsI(Tl) crystal with nuclear recoils and pulse shape measurements for dark matter detection