Apparatus for latching hood of vehicle