I agree. The kid should have been praised for what he did and also strenly reminded that he should have sought out an adult. The detention was out of line.
strenly = sternly