Setting a trap for beasts but a monkey entered and was killed by mistake as it could not be taken out

Q 1: We set a trap for catching beasts of prey, but it caught a live monkey. We tried to get the monkey out of the trap, but we could not. We struck the monkey which resulted in its death, though we did not mean it. Are we to blame? What should we do if we are to blame?

A: We feel that there is no wrong in your having killed the monkey, since it was not done intentionally.May Allah grant us success. May peace and blessings be upon our Prophet, his family and companions!