Man who allegedly threatened police with an axe shot dead