A gunman killed five people in a shooting spree in Seattle on Wednesday before turning the weapon on himself as officers closed in, police said.

The shootings shocked the north western US city that has now seen as many murders this year as it did in the whole of 2011.

The suspect, 40-year-old Ian Stawicki, is believed to have entered Café Racer Espresso, near the University of Washington, at around 11 a.m. (1800 GMT), where he shot five people with a pistol. Two died at the scene.

Half-an-hour later, Mr Stawicki is believed to have shot dead a woman in downtown Seattle before fleeing in a black Mercedes-Benz SUV.

An officer spotted the suspect a few hours later 2.4 kilometres away from the abandoned vehicle. When patrol cars approached him he put a gun to his head and fired one round, Deputy Police Chief Nick Metz said.

“The man detectives believe to be the lone suspect in four murders in two locations shot himself in the head when approached by a Seattle PD,” read a tweet from the Seattle police department earlier Wednesday.

He was taken alive to a Seattle clinic where he and two more of his victims later died.

“We’ve had two tragic shootings today that have shaken this city,” Seattle mayor Mike McGinn told reporters.

“And it follows on the heels of multiple tragic episodes of gun violence that have occurred throughout the city.” The motive for the shootings was not clear, but the suspect’s brother told the Seattle Times he was mentally ill.

“It’s no surprise to me this happened. We could see this coming. Nothing good is going to come with that much anger inside of you,” Andrew Stawicki said.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.