Officials in Afghanistan say almost 400 people , mostly insurgents , have been killed in an upsurge of violence since mid-May .