ISTANBUL—Two people died as protests grew on Wednesday in several Turkish cities after the funeral of a teenager whose death kicked off the largest antigovernment demonstrations since unrest swept the nation last year.

The clashes are feeding fears the country could plunge into unrest ahead of crucial elections this month and underscore the polarization between supporters and opponents of Prime Minister Recep Tayyip Erdogan. He...