4.0 quake rattles Bay