Bristol City goalkeeper Sam Tickle's error gifted Swansea City a fourth goal in their Championship clash.