Concurrence of monoenergetic electron beams and bright X-rays from an evolving laser-plasma bubble