You just go back out the last doorway that autosaves your game and then the puzzle should reset once you go back in.