Entanglement in a spin system with inverse square statistical interaction