PORTLAND, Maine — A Saco man was sentenced Friday in U.S. District Court to four years and three months in prison for a pharmacy robbery last year, according to the U.S. attorney’s office.

William C. Day, 41, also was sentenced to three years of supervised release.

Day pleaded guilty in November to one count of robbery of a controlled substance.

By pleading guilty, Day admitted that about 3 p.m., Aug. 10, 2015, he entered the Community Pharmacy on Main Street in Saco, vaulted the counter at the back of the store and demanded that employees give him narcotic drugs, the U.S. attorney’s office said Friday in a news release.

Saco police officers, who had responded to a silent alarm, spotted Day running away from the pharmacy with the drugs and chased him to a location near School Street, the release said. There, the officers arrested Day and recovered most of the stolen drugs.

Day, who has been jailed since his arrest, faced up to 20 years in federal prison and a fine of up to $250,000. The recommended federal sentencing guideline range was between 51 and 63 months.