Those are two different sets of doors he used to enter.
He entered twice, possibly once without the gun.
I think you’re right. He went in once to make sure his target was there and then came back with the rifle.