The two officers were each shot in the torso, but returned fire, hitting the man in one of his ankles