A 26-year-old man who deputies said is in the country illegally faces an attempted murder charge after investigators said he randomly attacked a woman along a beach in Martin County last week.