Attempts were made to resolve the situation by talking down a knifeman over five hours but the 39-year-old was shot by armed police