Saw a headline that the family tried to have the son committed to a psych ward but were turned away for lack of space. This was just a day or two prior to the stabbing.
That "lack of space" is bovine scat. The Sheriff could transport him to any hospital with a secure ward, or to any of the 3 state MH hospitals. What we probably have is a judge who was told the local hospital did not have a bed and therefore declined to issue the Green Warrant (psych exam warrant).
This is a failure of the MH system, the judicial system, and the family. If someone is in need of a secure setting to be evaluated to determine if they are in fact an ongoing threat to themself or others they should not be released to wait for an "available bed" to a home where there are hammers, knives, circular saws, or any other dangerous implements. And if they are, steps ought to be taken to secure said dangerous implements.
stay safe.