Shear dynamo, turbulence, and the magnetorotational instability