A Sydney TAFE campus was forced into lockdown on Tuesday after a person was pictured walking through it with an item that resembled a gun.