There is a distinct commandment, based on Leviticus 22:24, forbidding sterilization of animals as well as people. This is considered a Torah commandment for men and a rabbinic decree for women. Thus, causing damage to male reproductive organs, as with a vasectomy, is absolutely prohibited by halacha on a Torah level.