A 16-year-old boy carrying a gun opened the back door of a packed church, but was immediately confronted by and escorted away by parishioners.