A 21-year-old suspect killed a policeman in the city of Toyama on Tuesday after stabbing the officer, stealing his gun, shooting him and then fatally gunning down a security guard at a nearby elementary school, police said.

Keita Shimazu, a former member of the Self-Defense Forces from the town of Tateyama, Toyama Prefecture, was arrested on suspicion of attempted murder after being shot by another police officer who rushed to the elementary school in response to the incident. He was seriously wounded and taken to a hospital.

Shimazu is also alleged to have attacked and injured a police counselor who tried to stop him at the police box where the incident began.