A man waving a gun and shouting in a downtown Durham plaza was shot by police on Tuesday after an hourlong standoff.