To have a blast means to have a good time. Astronauts are people trained to go into outer space. When a space craft goes off into space, it's about to "blast off" or leave Earth. This joke is centered on the word "blast" and its different meanings. 
He became an astronaut and had a blast .