A characterization of Denniston's maximal arcs