Alleged assailant admits to critically wounding two people outside newspaper's former offices after republication of Mohammad cartoons