Officials said a good Samaritan came to the deputy’s aid and used his radio to call for help