Effects of external magnetic field on thermal entanglement in a spin-one chain with three particles