The sentence that does NOT have a grammar error by shifting mood or verb voice incorrectly is:
"Two children left the classroom without permission, but they were found immediately."
This sentence maintains consistent verb tense and does not suffer from any shifts in mood or voice.