Looks like the cap part of a liquidtight connector assembly.