Use a tapejara or pteranadon or quetz to put it in a 4x4 stone cage with normal stone doorframes as walls. Make sure it's two walls high.

More Dire Bear Taming & KO Tips