There are a couple of possibilities for a 5-letter word describing a student at a military school:
Cadet: This is the most common term used internationally for students at military academies or officer training schools.
Troop (less common): While “troop” generally refers to a soldier, it can be used informally to describe a military school student, especially in a collective sense (e.g., “a group of troops”).