Mathematical analysis of a hybrid model: Impacts of individual behaviors on the spreading of an epidemic