Deputies accidentally killed a 17-year-old boy while shooting at an aggressive dog in Palmdale early Thursday morning, the Los Angeles County Sheriff’s Department said.