A two-year-old child has been euthanised in the first case of its kind involving a child under 12 who was not an infant.