A man convicted of killing three people during the 1994 robbery of an Alabama fast-food restaurant has been put to death by lethal injection.

Robert Melson, 46, was pronounced dead at a south-west Alabama prison, authorities said, in the state's second execution of the year.

State prosecutors said Melson and another man who used to work at the restaurant robbed a Popeye's in Gadsden, 60 miles northeast of Birmingham, and Melson opened fire on four employees in the restaurant's freezer.

Nathaniel Baker, Tamika Collins and Darrell Collier were killed. The surviving employee, Bryant Archer, crawled for help and was able to identify one of the robbers as the former worker, which led police to Melson.

Ms Collins's family members wore a badge with her photograph and the phrase "In Our Hearts Forever".

Her family issued a statement saying that three young people lost their lives for "a few hundred dollars" and criticised court filings on behalf of Melson that challenged the state's execution procedure as inhumane.

Ms Collins's mother and two sisters witnessed the execution.

"He has been on death row for over 21 years being supported by the state of Alabama and feels he should not suffer a little pain during the execution. What does he think those three people suffered after he shot them, leaving them in a freezer?"

Melson shook his head no when the prison warden asked if he had a final statement. A prison chaplain knelt with him.

Melson's lawyers filed a flurry of last-minute appeals seeking to stay the execution. The filings centred on Alabama's use of the sedative midazolam, which some states have turned to as other lethal injection drugs became difficult to obtain.

The US Supreme Court temporarily delayed the execution to consider Melson's stay request, but ruled after 9pm that the execution could go ahead.

Midazolam is supposed to prevent inmates from feeling pain before other drugs are given to stop their lungs and heart, but several executions in which inmates lurched or coughed have raised questions about its use.

An inmate in Alabama coughed and heaved for the first 13 minutes of an execution in December.

Melson's lawyer argued that midazolam does not anaesthetise an inmate, but they might look still, because a second drug, a paralytic, prevents them from moving.

"Alabama's execution protocol is an illusion. It creates the illusion of a peaceful death when in truth, it is anything but," Melson's lawyers wrote in the filing to the Alabama Supreme Court.

The Alabama attorney general's office argued midazolam's use has been upheld by the US Supreme Court and it has allowed multiple executions to proceed using the drug, including of an Alabama inmate last month.

"Robert Melson's decades-long avoidance of justice is over. For 23 years, the families of the three young people whose lives he took, as well as a survivor, have waited for closure and healing. That process can finally begin tonight," attorney general Steve Marshall said after the execution.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.