Hasan Mahmud left Derbyshire 0-2 after the first two balls as Kent made a perfect start to their final away match of the County Championship season.