17-year-old in critical condition after being shot by deputy