When governments denounce terrorist attacks, backlash follows – typically within a few days, research found.