CCTV catches dog going under the stair gate to undo it