BENGHAZI, Libya — Galvanized by anger over the killing of the popular American ambassador here last week, thousands of Libyans marched through this city on Friday, demanding the disarming of the militias that helped topple the dictatorship but have troubled the country with their refusal to disband.