A minimal model for ecoepidemics with group defense