The motive for the attack that sent worshipers running for safety between busy services at famed pastor Joel Osteen’s Lakewood Church remains unclear.

Moreno was killed after pointing the gun at security officers, authorities said.

In addition to the child, a man in his 50s was also injured in the shooting, according to authorities.

Lakewood is regularly attended by 45,000 people weekly, making it the third-largest megachurch in the U.S., according to the Hartford Institute for Religion Research.

Osteen said the violence could have been worse if the shooting had occurred during the earlier, larger Sunday morning service.

Houston Police Chief Troy Finner said at a news conference Sunday that the shooter was wearing a trench coat and a backpack and was armed with a long rifle when he entered the church.

Moreno began shooting before being confronted by two off-duty officers: a Houston police officer and a Texas Alcoholic Beverage Commission agent, who returned fire, Finner said.

Finner said the shooter told officers after he was shot that there was a bomb, but a search found no explosives. The bomb claim was also recorded in the search warrant affidavit, which said the shooter had a “yellow rope and substances consistent with the manufacture of explosive devices.”

Finner and other authorities at the scene praised the officers, who have not been identified, for taking down the shooter.

Moreno “had a long gun and it could have been worse,” Finner said. “But they stepped up and did their job.”

It was unclear how the boy, who was taken to a Houston children’s hospital, was hit by gunfire.

When asked if the child was shot by one of the off-duty officers who returned fire at the suspect, Finner said he didn’t want to speculate, but added, “That suspect put the baby in danger.”

The shots surprised the faithful.

Alan Guity, whose family is from Honduras, has been a member of the church since 1998. He said he heard gunshots while resting inside the church sanctuary while his mother worked as an usher.

“Boom, boom, boom, boom. And I screamed, ‘Mom!’” she said.

Guity, 35, said he ran toward his mother and they both lay on the ground as the shooting continued. They prayed and stayed on the ground for about five minutes until someone told them it was safe to leave the building. As they took him outside, Guity could see that people were afraid, crying and looking for his loved ones.

Osteen, 60, took the helm of Lakewood Church after John Osteen, his father and the church’s founding pastor, died in 1999. The church has grown dramatically under his leadership.

Osteen is a leader of what is known as the prosperity gospel, a belief that God wants his followers to be rich and healthy. He is the author of several best-selling books, including “Your Best Life Now: 7 Steps to Living to Your Full Potential.”

Its televised services reach about 100 countries and its church stadium renovation cost nearly $100 million.

By Sam