how might rapid modernization in the middle east have contributed to the growth of islamic fundamentalism

Perhaps it was a backlash against change. Fundamentally, human beings resist change. Older people often believe the worst about how modernization changes morals and customs.