A U.S. Customs and Border Protection firearms instructor conducting a course was accidentally shot and killed at a west Miami-Dade gun range Wednesday morning, officials said.

Crews responded to the Trail Glades Range just before 10:30 a.m.

Sources told Local 10 News the shooting happened during a “building search training.”

They say two instructors were doing a demonstration and one shot the other in the chest.