An anomaly-free model in six dimensions