Man convicted in shooting of two-year-old