A 7-year-old girl is brought to the clinic with fever and diarrhea following recurrent bouts of Salmonella bacteremia. Her medical history is significant for a persistent infection following BCG vaccination. Laboratory testing reveals normal lymphocyte counts and low IFN-γ levels after IL-12 stimulation. What is the primary immune mechanism that is defective in this patient?