Associated Press

NEW YORK — Retailers including Wal-Mart, Sears and Amazon have agreed to halt the sales of life-like toy guns in New York.

State Attorney General Eric Schneiderman said Monday that the retailers also have agreed to pay over $300,000 in penalties.

Schneiderman's office found that over 6,400 toy guns sold from 2012 to 2014 violated New York laws. Most of the toys were sold online.

The deal requires those retailers to apply New York City's strict standards to sales statewide.

The push to regulate toy guns has increased since a Cleveland police officer fatally shot 12-year-old Tamir Rice in November as the boy was holding a realistic airsoft gun.

New York state prohibits the sale of black, blue, silver or aluminum toy guns. New York City requires that imitation guns be brightly colored.

Copyright 2015 The Associated Press