Japan's worst wildfire in over 50 years, killing one person, has been contained after damaging 210 buildings and displacing 4,200 residents.