Mauritanian authorities have handed over Muammer Gaddafi’s ex-spy chief to Libya nearly five months after he was arrested for entering the country illegally, state television reported on Wednesday.