A man was inside, pressing the machine, which sounded an alarm and then closed the door.