Spectral asymmetry of Dirac Hamiltonian in a five-dimensional Kaluza-Klein theory