Police say they shot dead Vikas Dubey when he stole a gun from a policeman and tried to flee from custody.