Four US, eight Afghan troops killed in Afghanistan after attacks