A Hempstead man was arrested and taken to a hospital for evaluation after police said he fired a gun out the window of his home, forcing officers “to retreat and take cover.”

The incident occurred at a home on Mason Street on Monday and was witnessed by Hempstead police officers responding to a domestic disturbance call at 6:58 p.m., Nassau County police said.

Police said the suspect, Cornell Jefferson, 33, did not fire at the officers — though rounds did strike one residence.

Jefferson was charged with second-degree criminal use of a firearm, second-degree criminal possession of a weapon, eight counts of first-degree reckless endangerment, and third-degree criminal possession of a weapon. He faces arraignment as soon as medically practicable, police said Tuesday.

advertisement | advertise on newsday

Police said that officers arriving at the scene were met by a female complainant, who said Jefferson was “acting erratically,” and then minutes later “several gunshots” were fired from an upstairs window.

Police officers retreated and took cover, and Jefferson “then started to throw various objects out the window into the surrounding yards,” police said.

Jefferson briefly barricaded himself in the home, but surrendered at about 7:30 p.m., police said.

No one was injured.

Police said a search of the home recovered a Springfield Arms handgun, a Springfield XDM handgun and shell casings.