You got it backwards. If you were going to call the initial raise, you should have moved all-in. Otherwise fold. It makes no sense to call a raise, a re-raise and then an all-in reraise. It would be better if you moved all-in instead of calling a raise. This will allow you the possibility of eliminating another player from the pot. The action shown by the players indicates a set. I would have folded to the reraise and be done.