India win a last ball thriller against Bangladesh