Measurements of electron density evolution and beam self-focusing in a laser-produced plasma