“A lawfully armed member of our community prevented a violent crime and ensured their own safety,” sheriff’s officials said