The collision happened as pupils were starting to arrive for the day