Man with severe psychiatric illness sentenced for attempted