Transition to chaos in a liquid inside an oscillating tank