If the cop did not have a warrant or exigent circumstances to enter, he did so unlawfully.
The cop was asked to come to the apartment by the woman who lived there.