Reports say Zakariyya was killed by some of his people. The Qur'an does not describe his death.
Qur'an: The Qur'an condemns those of Bani Isra'il who 'killed the prophets without right' (3:21; 2:61), without naming them.
Isra'iliyyat: Some reports say Zakariyya fled and hid inside a tree, and his enemies sawed the tree in two. These reports come from earlier traditions and are not authenticated. (Ref: Ibn Kathir, Qisas al-Anbiya' (Zakariyya))