A bear that triggered days of disruption in the Japanese city of Utsunomiya was captured.