Apparatus for discharging chemical liquid and method of discharging chemical liquid