A suspected explosive device damaged a bathroom at Tokyo's Yasukuni Shrine, but no one at the controversial war memorial was hurt, officials and news reports say.