Exact solution of an integrable anisotropic J1−J2 spin chain model