Man attempts to rape 6-year-old