Dusan Lajovic caused a major upset in the Srpska Open quarter-finals by defeating top-seed Novak Djokovic in straight sets.