Guard says he was warned by inmate not to touch pepper spray