Compression and electron beam heating of solid target under the external magnetic field for fast ignition