That was how King Joash repaid Jehoiada for his loyalty-- by killing his son. Zechariah's last words as he died were, "May the LORD see what they are doing and avenge my death!"