Entanglement of the Heisenberg chain with the next-nearest-neighbor interaction