The defender struck with 15 minutes remaining as Dundee United sit six points clear of seventh-placed St Mirren with two games remaining.