A third suspect is in custody after a gunman opened fire on a tram, killing three people and wounding five others.