Lucas Lima scored with the final kick of the game to snatch victory for Nantes against defending Ligue 1 champions Monaco.