Exact solution of an anisotropic J1 − J2 spin chain with antiperiodic boundary condition