Sheriff: Man who shot at officers has mental health issues