I'd say "in". "at" suggests to me that he stayed there for four years without ever leaving even to go home to sleep. "in" suggests to me that he was enrolled there, and he went to and from there as necessary for instruction.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.