The suspect has also died, police say, after earlier barricading himself in a room in an apartment building.