I think he got into trouble for using the Imperious curse, but not for killing and torturing insects. I think that the Imperious curse is less frowned upon in the wizarding society.

~Evie