A Japanese man in Belarus has been convicted of working for Japan's intelligence and sentenced to seven years in prison.