A Fredericksburg man is accused of attacking a Stafford County sheriff's deputy at Mary Washington Hospital, according to reports.