Two Wilson County brothers were shooting at cans in their yard when a pellet gun went off by accident, killing one, authorities said.