Atdhe Nuhiu's late penalty gave Sheffield Wednesday a 1-0 Sky Bet Championship win over 10-man Middlesbrough in a controversial game at Hillsborough.