A waste management firm has issued a warning after one of its employees found a marine flare which exploded in his hands.