Downtown standoff ends; police take teen into custody