Tamas Pal Kiss took his first GP3 victory with a lights-to-flag win in race two at Barcelona.