The bomb squad was called to detonate a car after a man drove through the barriers of a disused Army barracks and damaged the vehicle with a knife, police said.