A man wielding a bladed weapon randomly stabbed people in the station, police said. The suspect was shot by armed police.