Last updated on .From the section Scottish Premiership

A-Jay Leitch-Smith scored in time added on as Dundee came from behind to earn a dramatic late win over Hamilton .

The visitors equalised with 13 minutes left when substitute Matthew Henvey darted in to score at the front post.

Hamilton led after just two minutes, when Dundee's Mark O'Hara sliced the ball into his own net.

The home side were reduced to 10 men when David Templeton received a second yellow card three minutes before Dundee's equaliser.

Both sides made two changes as they looked to bounce back from midweek defeats.

Hamilton attacker David Templeton was sent off for two bookable offences

Hamilton welcomed back Ionnais Skondras from suspension and Antonio Rojano, while Kevin Holt and top scorer Sofien Moussa returned for the visitors.

For Accies, the build up to this one was all about the loss of two of their top talents, with Greg Docherty going to Rangers and Michael Devlin signing for Aberdeen.

But with the loss of Docherty, much of the pre-match talk surrounded Lewis Ferguson as a possible replacement. The 18-year-old midfielder made only his third start against Dundee.

And he was central to the game's opening goal. Danny Redmond's deep free kick was headed back towards goal by Ferguson, where O'Hara deflect the ball into the back of his own net past a helpless Dundee goalkeeper Elliott Parish.

The goal came after just 90 seconds, leaving Dundee with plenty of time to work their way back into the game.

Dundee's Mark O'Hara deflected the ball into his own net after Hamilton's Lewis Ferguson headed across goal

Moussa and Holt had good chances, but both saw their efforts fall wide. Paul McGowan also tried his luck with a long-range shot, and his effort was spilled by Hamilton goalkeeper Gary Woods. Moussa was close by, but didn't react quickly enough.

Hamilton suffered a setback deep into the second half when Templeton was dismissed by referee Kevin Clancy after receiving his second yellow card for a trip on Allan, and Dundee took full advantage.

Three minutes later, the visitors were level when 18-year-old Matthew Henvey scored from close range after a lovely delivery from midfielder Scott Allan.

Dundee could sense that the game was there for the taking and they piled on the pressure, with Moussa and Henvey coming close.

The visitors continued to pile forward and when Accies went down to nine men as Darian Mackinnon was being treated for a leg injury, they took their chance.

Glen Kamara tried his luck from distance, and Leitch-Smith showed the presence of mind to stab out a foot to deflect the ball in for the winning goal.

Mackinnon will have a scan on his knee injury on Monday, while Dundee assistant manager Graham Gartland was sent to the stands for comments he made to the fourth official, which will be included in the referee's report.