Undercover officer shot in the face during gun ring investigation