I was trying to catch a fly and accidentally killed it unfortunately, what is the stance in killing insects?

Nothing to worry about it as you have not done this as a fun.