Prosecutor says accused planned the 2021 attack, which killed four members of the Afzaal family in Ontario, for months.