Police say a firearm was discharged as the victim was being assaulted