Sheared-flow induced confinement transition in a linear magnetized plasma