#HalachaYomi KSA 191:1 Can’t cause pain to any creature. But if creature is troublesome, or if needed for any purpose, allowed even to kill.