MS Dhoni scored the last 16 runs needed off four balls to ensure the Chennai Super Kings beat the Mumbai Indians.