KRDO-TV reports cadet Jacob Cook entered his plea Tuesday during a military trial at the academy.

In exchange for Cook’s guilty plea, prosecutors dropped a charge of abusive sexual conduct.

Cook said in court Tuesday he used a hidden cellphone to record two girls when they undressed and showered at his father’s house.

He was sentenced to 30 months in military prison.