The population dynamics of pathogens that control insect outbreaks