One person was killed and seven others were wounded after a gunman opened fire on Sunday at a church in Antioch, Tenn., near Nashville, officials said. The police said the gunman, who shot himself, was in custody.

About 50 people were in the church at the time of the shooting, which was reported at 11:15 a.m. local time as services were ending, the police said. Robert Engle, an usher at the church, the Burnette Chapel Church of Christ, was pistol-whipped when he confronted the gunman.

Mr. Engle, 22, then ran to his car, got his gun and returned to ensure “the gunman didn’t make any more movements until police arrived,” Don Aaron, a police spokesman, said at a news conference. The police described Mr. Engle as an “extraordinarily brave individual.”