Police say man was plotting to rob pizza shop