Teen pleads guilty to weapon charge in fatal shooting