The retailer Target apologized on Saturday after coming under criticism for selling N95 masks, which are in acute demand by medical providers during the coronavirus pandemic, at some stores in Washington State.

The masks were made available to the public for purchase “in error” in select stores in Seattle, the company said in a statement on Twitter. It said it was removing them and donating them to the Washington State Department of Health.

“We’re also reviewing inventory for additional masks to be donated,” the statement continued. “Target’s commitment to communities is unwavering & we apologize.’’

Target issued the apology after it was criticized for selling the masks, which are in short supply to health care workers during the coronavirus outbreak. Washington has been a leading state in deaths related to the virus.