With the ads, Democrats hope to push out moderate conservatives who may be fiercer competition in November. Critics say the strategy carries risks.