Shelton boys edge Ridgefield on last-second layup