Gay’s layup rimmed out and the Black Knights were able to corral the rebound, sink two free throws and beat the Midshipmen.