The head of World Boxing has apologised after the organisation singled out Imane Khelif in an announcement about making sex testing mandatory.