No-core shell model calculations of the photonuclear cross section of 10B