School bosses have thanked their community and the emergency services for their response following an emergency lockdown.