Merck KGaA agreed to sell the German drugmaker’s allergy business Allergopharma to Dermapharm SE for an undisclosed price, but will continue to develop an autoinjector to treat allergic shock.