The man behind Monday’s rampage praised an online community of misogynists just minutes before killing 10 people, according to the authorities.