VESTAVIA HILLS, Ala. (WIAT) -– The man accused of killing three people at an Alabama church on Thursday was a licensed gun dealer, who according to government records, had received a warning letter from the Bureau of Alcohol, Tobacco, and Firearms in 2018 related to missing gun inventory.

Robert F. Smith, 70, was charged Friday with capital murder in the shooting at St. Stephen’s Church in Vestavia Hills. Police said Smith opened fire at a potluck at the church, killing three people: Bart Rainey, Sarah Yeager and Jane Pounds.

Smith’s home in Vestavia Hills is registered with the ATF as the primary address for Original Magazines 2, a business with a federal firearms license. The license is valid until 2025, according to ATF records.

But federal inspection reports compiled by news outlet The Trace show that Smith had received a warning letter from the ATF in 2018 involving missing inventory and incomplete record-keeping.

According to the database, the warning letter was issued in February 2018. The letter said Smith had 86 firearms on hand, compared to 97 listed in his records. Smith “failed to the record the disposition” of multiple firearms, the letter said.

The letter also cited issues with Smith’s recordkeeping, saying that he “failed to record” necessary information like addresses and license numbers in records as required by law.

Kelley Hudlow, a church official with the Episcopal Diocese of Alabama, said shootings such as this one are “something you never expect to happen in your community.”

“The one thing we know is that St. Stephen’s is a church community and is built on love and grace and prayer, and they are going to come together,” Hudlow said.

Smith is currently being held without bond, authorities said Friday.