Swansea City scored two gaols in five minutes to hand Manchester United their first defeat of the season, claiming a 2-1 win.