They said Michael Ryan Gaither, 33, ordered his pit bull to attack them in his home Sunday morning.

The incident happened at Gaither's home in the 4700 block of Pine Needle Street. Deputies went there to serve a temporary domestic violence injunction against Gaither. A judge had ordered Gaither to surrender his weapons for the injunction.

Gaither had several guns and some marijuana kept in a safe in a bedroom, according to the arrest affidavit. The deputies said they followed him to the bedroom and asked him to unlock the safe and then step away from it.

Instead, Gaither opened the safe and grabbed a rifle, the affidavit states. One of the deputies wrestled the rifle away from Gaither and tossed it aside.

Gaither then reached into the safe again, pulled some marijuana out and stuffed it into his mouth, according to the arrest report.

Deputies tried restraining Gaither because there were more weapons in the safe. During the scuffle, Gaither's pit bull entered the bedroom and started growling.

Gaither ordered the dog to bite the deputies, the affidavit states. But his 11-year-old daughter pulled the dog out of the room.

Gaither was charged with aggravated assault on an officer, aggravated assault with a deadly weapon, resisting an officer with violence, tampering with evidence and possession of marijuana and drug paraphernalia.

He remained at the Brevard County Jail on Tuesday in lieu of $28,000 bail.

Support local journalism: To sign up for a digital subscription to get breaking news, in-depth coverage and all the local news from FLORIDA TODAY for just $3.99 per month, visit floridatoday.com/digitalunlimited