If he was truly trying to break in then the shooting is justified as you do not have to wait for your property to be damaged.
I have a peeping glass in my door, so I indeed would know what was outside the door. I probably would not have shot as I have a steel door and my home protection rounds are made to stop people not pierce steel.