A French citizen detained in Niger in the wake of a coup has been freed, the French foreign ministry announced on Thursday.