A Hammond man was sentenced to 11 years in prison after pleading no contest to attempted murder, armed robbery and other offenses.

Prosecutors said that in February, Jarred Dotey, 21, 46037 Rufus Bankston Road, entered a home on Happywoods Road in Hammond wielding a pistol and demanding money from a couple who lived there.

When they said they didn’t have any cash, he pistol-whipped one of the victims in the back of the head.

Another couple lived at the home with their two small children.

When they heard the commotion, they slipped out the house through a bedroom window.

Dotey gave chase, confronting a female member of the second family and again demanding money. He shot the woman through the shoulder, stole money from her purse and fled, the Tangipahoa Parish District Attorney’s Office said in a news release.

Dotey was arrested four days later.

Judge Elizabeth Wolfe, of the 21st Judicial District Court, sentenced Dotey last week.

He pleaded no contest to attempted second-degree murder, attempted armed robbery, aggravated burglary, armed robbery and an unrelated charge of simple burglary of an inhabited building.

Most of the sentences are to run concurrently for a total of 11 years.