Measurement of vector magnetic field in a flare kernel with a spectropolarimetric observation in He  i 10830 Å. (10th October 2018)