ANDERSON — A teenager opened fire outside Townville Elementary School on Wednesday afternoon — shortly after killing his father at home, authorities said — as this far northwestern corner of South Carolina joined the national ranks of gun violence attacks.