The man , Jean Charles de Menezes , 27 , an electrician from Brazil , was shot seven times in the head on a subway train after he was wrongly identified as one of four men who had tried to detonate bombs on London 's mass transit system a day earlier .