Mark Allen pulled off one of the pots of the tournament as he was beaten by Barry Hawkins in the UK Championship semi-finals.