The Kroger Company will stop selling guns to customers under the age of 21, the grocery store chain said Thursday, joining two other major retailers who have raised age limits after last month’s school shooting in Florida.

Kroger sells guns at 43 of its 133 Fred Meyer locations in Alaska, Idaho, Oregon and Washington. It said that, in those stores, customers would not be able to buy either guns or ammunition until undergoing a background check that would verify their age.

A spokeswoman for the company, Kristal J. Howard, said that the change was a direct response to the massacre in Parkland, Fla., where 17 people were killed in a school shooting.

“We follow all state and local laws regulating the sales of sporting-related firearms at our select general-merchandise Fred Meyer stores,” she said. “Recent events demonstrate the need for additional action on the part of responsible gun retailers.”