A 24-year-old man with two handguns was shot by police after allegedly aiming one of the weapons at an officer during a foot pursuit Tuesday night in the city's Nicetown section, police said.