State law exempts the school from the wrongful death lawsuit filed by the parents of freshman Gil Collar, 18, of Wetumpka, Mobile County Circuit Judge Robert H. Smith said in his one-sentence order.
The judge said the lawsuit can go forward against the university's police chief, Zeke Aull, however.
A university police officer shot and killed Collar outside the police station in October. The former high school wrestler had been on campus only a few weeks.
Authorities said Collar was nude and appeared to be on drugs, and he threatened the officer. The lawsuit maintains the shooting was unjustified and violated police policy.
An attorney for the family did not immediately return a message seeking comment.
Collar's family also is suing Trevis Austin, the officer who fired the fatal shot. Austin's lawyer has not asked the judge to dismiss that suit.