A Pennsylvania pastor says he’s grateful to God for his life after a man attempted to shoot him during his Sunday sermon