Vice President Mike Pence says the US will defend Japan as an ally during his visit to a US naval base in Yokosuka southwest of Tokyo.