It happened outside St Stephen’s Episcopal Church in the town of Vestavia Hills and a suspect is in custody, the town’s police department said on Facebook.
The shooting took place as the church was holding a potluck dinner, the church said on its website.
The United States is in the midst of a particularly gruesome chapter of its epidemic of gun violence. The worst case in this stretch was a shooting at an elementary school in Uvalde, Texas that left 19 children and two teachers dead on May 24.
Since the start of the year more than 20,000 people have died of firearm violence in the United States, according to an NGO called the Gun Violence Archive. This includes deaths by suicide.