A U.S. Park Police officer accidentally shot himself in the foot Thursday while he was being attacked by a raccoon.

The raccoon attacked the officer Thursday afternoon in Rock Creek Park while the officer was on Horse Stable Lane, the Washington Times reports.

“While attempting to fend off the raccoon, the officer shot himself in the foot,” said Park Police spokeswoman Sgt. Anna Rose in a statement on the incident.