30-year-old Dyllan Padavona was arrested by officers from the Southwest policing district and was being interviewed by detectives on Friday night.
Padavona was arrested near Santa Clara Street and Van Ness Avenue, less than a mile from where the attack happened around 7:30 a.m. in the area of Kern and G streets.
Fresno police say a city employee was working on an electrical box when the suspect walked up and struck him in the back of the head with a blunt object.

City employee in critical condition after attack in Fresno, police say
Surveillance video captured the employee falling to the ground and not getting back up.
Police say the suspect then casually walked off.
"This was a vicious and unprovoked attack in broad daylight. There was nothing the city worker could've done to prevent this," said Fresno Mayor Jerry Dyer.
The victim is an electrician with the city's public works department.
His name has not been released, but we know he's 57 years old and has worked for the city for 20 years.
He was working alone at the time of the attack.
The employee was rushed into surgery and remains in critical condition.
As of Friday afternoon, officials said that he had not regained consciousness following the attack
His family was with him at the hospital, including his wife and two daughters.
"Who would think what wife would think that her electrician husband would go to work on a Friday, his day off, and get a call that he was being taken to the hospital? This is horrible," said Fresno City Manager Georgeanne White.
Skyview 30 showed the extensive crime scene as officers searched for any evidence.
After hours of detective work, officers were able to track down the suspect at Van Ness and Santa Clara avenues.
For news and weather updates, follow Brisa Colon on Facebook, Twitter and Instagram.