Criticality in a hadron resonance gas model with the van der Waals interaction