Kilmarnock booked their place in the Premier Sports Cup semi-finals with a hard-fought 2-1 win over Dundee United.