Philadelphia officials imposed a citywide after-dark curfew on Wednesday, seeking to avert a third night of violence amid protests over the fatal police shooting of a black man wielding a knife and described by family as undergoing a nervous breakdown.