Authorities said a former member of the congregation killed five people and wounded eight, including a pregnant woman who miscarried after the shooting.