A Mississippi resident, who threatened to kill President Obama and blow up a hospital, has been sentenced to 10 months in federal prison.

David Williams, 45, of Attala County in north central Mississippi, made the threat during an agitated phone call to the University of Mississippi Medical Center, after the hospital refused to perform surgery on his wife.

Secret Service agent Ronald McCormick's documents filed during the case said that Williams called the hospital on July 19. He went ballistic when the hospital declined to perform a surgery on his wife and threatened to blow up the building and kill Obama, referring to him with a racist epithet.  

Williams was arrested in July on charges of threatening the President and for using a telephone to threaten to plant explosives in the hospital building. He pleaded guilty on Aug. 31, on charges which could potentially fetch him up to 15 years in prison.

U.S. District Judge W. Allen Pepper sentenced Williams during a hearing on Thursday in Greenville, according to an AP report.

The hospital refused to disclose details of Williams' wife's ailment due to the federal medical privacy laws.