Trap it in a box build of railings with a gate, then shoot it from the outside it worked for me.

More Castoroides Taming & KO Tips