Updated

A man who stabbed four people, one of them fatally, at a German train station has been sent to a psychiatric hospital.

Police said Wednesday a medical expert concluded that the 27-year-old German was mentally ill and it could be assumed that he was at most partially legally responsible for his actions. A judge ordered him sent to a psychiatric hospital at a closed-doors hearing.

The man, whose name hasn't been released, stabbed four people in an apparently random early-morning attack Tuesday at the Grafing Bahnhof station, east of Munich. One man later died. Police said Wednesday the other victims are in stable condition in hospitals.

The man shouted "Allahu akbar," Arabic for "God is great," during the attack but authorities found no evidence of links to Islamic extremists.