BEIJING — Apparently unnerved by an anonymous Internet campaign urging Chinese citizens to emulate the protests that have rocked the Middle East, Chinese authorities this week have begun a forceful and carefully targeted clampdown on activities by foreigners that the government deems threatening to political stability.