A 20-year-old Palestinian is in critical condition after publicly setting himself of fire in the Gaza Strip.