VESTAVIA HILLS, Ala. (WIAT) — Robert F. Smith, a 70-year-old man prosecutors claim shot and killed three people inside an Alabama church Thursday, was a licensed gun dealer, according to government records. Federal inspection reports show that Smith had received a warning letter from the Bureau of Alcohol, Tobacco, and Firearms in 2018 related to missing gun inventory.

Smith was charged with capital murder in the shooting at St. Stephen’s Church on Friday. Police said Smith came to a small group event at the church — a senior potluck — and opened fire, killing three: 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 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.

Stay with CBS 42 for new information, as this story is developing.