Violence has surged ahead of next month 's parliamentary elections in Afghanistan .