A Livingston Parish Sheriff’s deputy was shot once in his bulletproof vest Tuesday — but was not injured — in a narcotics raid on a home in Walker that resulted in one man booked on several counts of attempted first-degree murder of a police officer.

Robert Thomas, 30, fired the shot through a wall while deputies were entering his home near Johnson Lane and Sycamore Street about 6 p.m. Tuesday, Sheriff Jason Ard said in a release.

Deputies entering the house found many people inside — including several children, Ard said. While deputies searched through the home, Thomas opened fire through a wall, with one round striking a deputy in the vest, Ard said.

The deputies took Thomas into custody without returning fire, Ard said.

“You never know what you’ll come across in this type of situation,” Ard said in the release. “My team followed protocol and used their training wisely.”

Thomas was booked on multiple counts of attempted first-degree murder of a police officer, as well as violations for firearms and narcotics.

Thomas has been arrested at least once before on drug charges, Ard said. Narcotics were recovered in the raid, but Ard did not disclose how much.