Persons within this state who are not citizens thereof and resident aliens shall not be liable to militia duty, except in repelling local invasions or suppressing insurrections.