Dedryck Boyata's late goal earned Celtic a valuable 1-0 win over Qarabag in the first leg of their Champions League play-off on Wednesday.