You'll find on this site that decisions depend on information. We interpret information and make decisions. I would like to know how many big blinds you had, what the blinds level was, your opponents stack size, your positions, your table image, etc. In general I will say this.
Tournament poker is all about making the right decisions and still losing most of the time. It sounds like you put yourself in a great spot and your opponent just got lucky, so no you couldn't do anything differently.
Sometimes we just get unlucky in this game, but you can't sweat it.