Armed man keeping police at bay