This paper investigates a hierarchical target tracking method based on the collaboration of unmanned aerial vehicles (UAVs) at different altitudes. To enhance the target tracking range, the highaltitude UAVs monitor the wide area, and transmit their surveillance information to low-altitude UAVs which directly detect and collect information about the target's movements. The contributions of this paper are threefold: First, to track the flying target in a dynamic environment, a modified Lyapunov guidance vector field (LGVF) method is used to plan velocities for UAVs, where a time-varying vertical component is incorporated into the traditional LGVF function to satisfy the constraints of cluster communication. Secondly, a three-dimensional local collision-free guidance vector field (TLCGVF) method is proposed for UAVs to plan collision-free paths on line. To simultaneously track the target and avoid obstacles, the vector field by LGVF is used as the original vector field of TLCGVF. Thirdly, the rolling optimization strategy is used to adjust the reactive parameters of TLCGVF to enhance the path quality. The simulation results confirm the feasibility of the above approach.