Trainee policeman kills six US troops in Afghanistan