Nine people have died in Japan when a care home for the elderly was flooded by heavy rains brought by Typhoon Lionrock.