En man i 30-årsåldern från Eskilstuna har dömts till rättspsykiatrisk vård med särskild utskrivningsprövning för att ha hotat att skjuta poliser.