Heterogeneity-Induced Oscillations in Active Nematics