Tokyo stocks end flat on geopolitical concerns