Pulled out a knife and wounded himself, after the gun jammed?
Intended murder-suicide. Not described as a member of the church, and I’m very certain he would have been identified as such, had he been.
Either the shooter was completely delusional, or it was personal.
A woman in the next county to me walked into her church and killed the secretary because she thought the minister and congregation paid too much attention to the woman. She was completely delusional and is serving a life sentence.