In my area, we say, "The door wasn't closed tight." That shows that the door was actually closed, but evidently not enough to make it secure. This happens a lot with car doors. I'm sure a few of us have had car doors fly open when least expected!
You could also say, "The door wasn't closed securely."