Burnley suffered their second defeat of the season in late and controversial circumstances at Old Trafford.