Two people are dead and another person was left critically injured after a gunman opened fire in a North Texas church, officials said.

The gunman opened fire at the West Freeway Church of Christ in White Settlement, Texas, during Sunday morning service. After firing a two shots, the gunman was shot by an armed church member.

WFAA TV (Channel 8 News) reported the church’s Sunday service was livestreamed on YouTube, so the shooting was broadcasted but has been taken down. The video showed a man pulling out a weapon and then appeared to fire twice before another church member fired back. Some of the congregants held guns as they rushed towards the shooter, while others ducked under church pews.

CBS 11 News was told by a witness that a man with a shotgun walked up to a server during communion and began to fire until another church member — who was identified as part of the church’s security and a former FBI agent— shot him.

Church member Isabel Arreola told CBS 11 News, “It was the most scariest thing. You feel like your life is flashing before you. I was so worried about my little one.”

In a press conference, Fort Worth spokesman Mike Drivdahl stated,“When White Settlement PD and White Settlement Fire Department arrived on scene, they did find a total of three patients that have been transported in critical condition. That includes who they do believe is the shooter, so that is a total of three, including the shooter, who have been transported.”

Two other victims were injured while trying to take cover during the shooting but were treated and released.

Lives were saved today because of a recent law that went into effect on September 1, which allows Texas residents to carry guns in churches, synagogues and other places of worship, unless otherwise banned by those places with proper signage.