When call to an active situation police have several responsibilities one of them is securing the scene to make sure that no one can leave unaccounted for. They also attempt to protect those who are not already in harm's way. They need to prevent others from interfering with the situation, such as parents attempting to enter the building themselves. Then finally they must assess the best way to deal with active hostilities without recklessly risking themselves or others.
I'm confident that there will be much examination of what was done and what the police procedures were and if those procedures need to be modified based upon things learned here. The thing is those are not quick knee-jerk lessons. It's very difficult to take a dispassionate and logical view of a situation that has caused the death of others. It's even harder if someone was directly affected by this to take a dispassionate and logical view.
Ultimately that is what's needed in order to ensure that proper actions are taken next time and proper preventative measures can be put in place. So if you ask how long should they wait to intervene in an active shooter situation my answer would be as long as necessary but no longer. That time frame is highly situationally dependent.
Because if we take a hypothetical rush in immediately situation. Not only could the police be rushing into the building parents may be rushing in as well attempting to save their children. Confusion could easily ensue police could accidentally shoot parents, the active shooter may be able to abandon his weapons and blend in with the crowd of parents and escape the situation. All kinds of other scenarios that end with even worse outcomes could happen and there are very few scenarios, outside of movies, where they rush in and they get the active shooter and everybody's happy.