The number of people killed by bears in Japan this year has reached a record high, the country's environment ministry has said.