Bethe ansatz solution for a defect particle in the asymmetric exclusion process