Magnetic order in ternary ErCoSi2 compound