The deputy was able to get the knife-wielding man down on the ground until police arrived, a witness told investigators