A serving officer who said indecent images of children were downloaded onto his phone when he tried to stream football and films has been sentenced.