Teacher is 1st public servant detained for terrorism-related offences