An Islamist fighter accused of allowing mass rape was given nine years in prison for destroying shrines