Japan releases Chinese boat captain amid dispute