Double Effect: Save, Kill, or Both?

If, in the process of self-defense one kills another, would that be a sin? St. Thomas…