MIDDLETON — A gunman shot four people, none fatally, at his Middleton workplace Wednesday morning before he was killed in a shootout with police, Middleton Police Chief Charles Foulke said.

Authorities had not released the man’s name or age, but police said he was from Madison and worked at WTS Paradigm, a software company at 1850 Deming Way where the shooting occurred. Police said a motive for the shooting was not yet known.

Foulke said the shooter had been in the building before he began shooting at fellow employees around 10:29 a.m. One of the four people injured was just grazed by a bullet police say was fired from a handgun.