James Tarkowski's handball gave the hosts the opportunity to snatch victory six minutes from time.