The man set off the metal detector but was allowed to enter the building after he was searched by officer, who failed to find the gun.