A man in Florida aiming to shoot a snake with a semiautomatic rifle mistakenly shot his friend instead.

Brandon Rapé and his friends stopped their pickup truck on Thursday so one of them could use the bathroom. The friends spotted a snake on the road and Jared Hemphill tried to shoot it with a semiautomatic rifle, according to the Orlando Sentinel. But Hemphill ended up shooting Rapé in the left thigh instead.

Hemphill immediately dropped the rifle, put Rapé and friend Dustin Downer in the truck. Hemphill drove to the hospital and called 911 according to the police report of the shooting.