Japan to release Chinese boat captain amid dispute