IS fighters have blown up al Nouri mosque in Mosul, where the group's leader declared the caliphate, the Iraqi military has said.