What causes odd off-flavor/smell in tofu?
Going bad. 

It's not necessarily unsafe to eat yet, but tofu can pick up a slightly spoiled flavor even before it goes bad. 

Especially since tofu has so little flavor of its own, it's easy to taste if it goes slightly off. 

You can mitigate this by storing it in clear water and changing the water frequently.