Nantes have signed centre-back Kian Hansen from Esbjerg and loaned the player back to the Danish club.